this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Misc. configurations

+59 -23
+55 -22
.config/nixos/prismo/configuration.nix
··· 13 13 <home-manager/nixos> 14 14 ]; 15 15 16 + nix.settings.experimental-features = [ "nix-command" "flakes" ]; 16 17 17 18 # ========================================================================== 18 19 # Boot configuration ··· 25 26 # Networking configuration 26 27 # ========================================================================== 27 28 networking.hostName = "prismo"; 28 - networking.networkmanager.enable = true; 29 + 30 + # TODO: might need to try using wpa_supplicant directly instead of nmcli 31 + networking.networkmanager = { 32 + enable = true; 33 + # Tried https://askubuntu.com/a/1228914 but it doesn't seem to help... 34 + # wifi.scanRandMacAddress = false; 35 + }; 29 36 30 37 # Open ports in the firewall. 31 38 networking.firewall.allowedTCPPorts = [ ··· 63 70 services.cron.enable = true; 64 71 services.openssh.enable = true; 65 72 73 + # For physical console access passwordless. Ideally this could use a hardware 74 + # key or something instead... 75 + services.getty.autologinUser = "ianchamberlain"; 76 + 66 77 # Prevent lid sleep when plugged in 67 78 services.logind.lidSwitchExternalPower = "ignore"; 68 79 69 - /* Uncomment these to enable graphical desktop 70 - # TODO can this just be a one-line import or something? 80 + # /* Uncomment these to enable graphical desktop 81 + services.xserver = { 82 + # Enable the X11 windowing system. 83 + enable = true; 71 84 72 - # Enable the X11 windowing system. 73 - services.xserver.enable = true; 74 - services.xserver.layout = "us"; 75 - services.xserver.xkbOptions = "eurosign:e"; 85 + # Keyboard options 86 + layout = "us"; 87 + xkbOptions = "eurosign:e"; 76 88 77 - # Enable touchpad support. 78 - services.xserver.libinput.enable = true; 89 + # Enable touchpad support. 90 + libinput.enable = true; 79 91 80 - # Enable the KDE Desktop Environment. 81 - services.xserver.displayManager.sddm.enable = true; 82 - services.xserver.desktopManager.plasma5.enable = true; 92 + # Enable the KDE Desktop Environment. 93 + displayManager.sddm.enable = true; 94 + desktopManager.plasma5.enable = true; 95 + }; 96 + # */ 83 97 84 - # Enable CUPS to print documents. 85 - services.printing.enable = true; 86 - 87 - # Enable sound. 88 - sound.enable = true; 89 - hardware.pulseaudio.enable = true; 90 - */ 91 - 98 + # Maybe not needed anymore after tlp? 92 99 services.mbpfan = { 93 100 enable = true; 94 101 aggressive = true; 95 102 }; 96 103 104 + /* # TODO: needs applesmc-next for thresholds to work 105 + # maybe also use powertop from powerManagement instead of packages? 106 + services.tlp = { 107 + enable = true; 108 + settings = { 109 + CPU_SCALING_GOVERNOR_ON_AC = "performance"; 110 + CPU_SCALING_GOVERNOR_ON_BAT = "performance"; 111 + 112 + CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; 113 + CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; 114 + 115 + CPU_MIN_PERF_ON_AC = 0; 116 + CPU_MAX_PERF_ON_AC = 100; 117 + CPU_MIN_PERF_ON_BAT = 0; 118 + CPU_MAX_PERF_ON_BAT = 20; 119 + 120 + # Optional helps save long term battery health 121 + START_CHARGE_THRESH_BAT0 = 5; 122 + STOP_CHARGE_THRESH_BAT0 = 95; 123 + }; 124 + }; 125 + */ 126 + 127 + services.devmon.enable = true; 128 + 97 129 # ========================================================================== 98 130 # General system configuration 99 131 # ========================================================================== ··· 111 143 hfsprogs 112 144 firefox 113 145 lm_sensors 146 + nixos-option 147 + powertop 114 148 vim 115 149 wget 116 150 ]; 117 151 118 - # TODO: use podman from unstaable instead of docker 152 + # TODO: use podman from unstable instead of docker? 119 153 virtualisation.docker = { 120 154 enable = true; 121 155 }; ··· 140 174 ]; 141 175 shell = pkgs.fish; 142 176 }; 143 - 144 177 145 178 # This value determines the NixOS release from which the default 146 179 # settings for stateful data, like file locations and database versions
+4 -1
.config/nixpkgs/home.nix .config/home-manager/home.nix
··· 26 26 notify = false; 27 27 tray = "never"; 28 28 }; 29 + 30 + syncthing.enable = true; 29 31 }; 30 32 31 33 home.packages = with pkgs; [ ··· 34 36 fish 35 37 git-crypt 36 38 htop 39 + keepassxc 37 40 neovim 38 41 pinentry-curses 39 42 shellcheck 40 43 thefuck 41 44 tree 42 - udevil 45 + tmux 43 46 unzip 44 47 yadm 45 48 ];