/ hardware-configuration.nix
hardware-configuration.nix
1 # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 # and may be overwritten by future invocations. Please make changes 3 # to /etc/nixos/configuration.nix instead. 4 { config, lib, pkgs, modulesPath, ... }: 5 6 { 7 imports = 8 [ (modulesPath + "/installer/scan/not-detected.nix") 9 ]; 10 11 boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" ]; 12 boot.initrd.kernelModules = [ ]; 13 boot.kernelModules = [ "kvm-amd" ]; 14 boot.extraModulePackages = [ ]; 15 16 fileSystems."/" = 17 { device = "none"; 18 fsType = "tmpfs"; 19 }; 20 21 fileSystems."/persist" = 22 { device = "/dev/disk/by-uuid/1b668bcc-0aa3-4518-90ae-0046cbbffe2b"; 23 fsType = "btrfs"; 24 options = [ "subvol=persist" ]; 25 }; 26 27 boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/ae7682b7-5c23-4410-ad47-2a57f4e7abcb"; 28 29 fileSystems."/var" = 30 { device = "/dev/disk/by-uuid/1b668bcc-0aa3-4518-90ae-0046cbbffe2b"; 31 fsType = "btrfs"; 32 options = [ "subvol=var" ]; 33 }; 34 35 fileSystems."/nix" = 36 { device = "/dev/disk/by-uuid/1b668bcc-0aa3-4518-90ae-0046cbbffe2b"; 37 fsType = "btrfs"; 38 options = [ "subvol=nix" ]; 39 }; 40 41 fileSystems."/home/elen/.FeelUOwn" = 42 { device = "/nix/persist/home/elen/.FeelUOwn"; 43 fsType = "none"; 44 options = [ "bind" ]; 45 }; 46 47 fileSystems."/home/elen/.cache" = 48 { device = "/nix/persist/home/elen/.cache"; 49 fsType = "none"; 50 options = [ "bind" ]; 51 }; 52 53 fileSystems."/home/elen/.cargo" = 54 { device = "/nix/persist/home/elen/.cargo"; 55 fsType = "none"; 56 options = [ "bind" ]; 57 }; 58 59 fileSystems."/home/elen/.config" = 60 { device = "/nix/persist/home/elen/.config"; 61 fsType = "none"; 62 options = [ "bind" ]; 63 }; 64 65 fileSystems."/home/elen/.factorio" = 66 { device = "/nix/persist/home/elen/.factorio"; 67 fsType = "none"; 68 options = [ "bind" ]; 69 }; 70 71 fileSystems."/home/elen/.gnupg" = 72 { device = "/nix/persist/home/elen/.gnupg"; 73 fsType = "none"; 74 options = [ "bind" ]; 75 }; 76 77 fileSystems."/home/elen/.gradle" = 78 { device = "/nix/persist/home/elen/.gradle"; 79 fsType = "none"; 80 options = [ "bind" ]; 81 }; 82 83 fileSystems."/home/elen/.local" = 84 { device = "/nix/persist/home/elen/.local"; 85 fsType = "none"; 86 options = [ "bind" ]; 87 }; 88 89 fileSystems."/home/elen/.mc" = 90 { device = "/nix/persist/home/elen/.mc"; 91 fsType = "none"; 92 options = [ "bind" ]; 93 }; 94 95 fileSystems."/home/elen/.mongodb" = 96 { device = "/nix/persist/home/elen/.mongodb"; 97 fsType = "none"; 98 options = [ "bind" ]; 99 }; 100 101 fileSystems."/home/elen/.mozilla" = 102 { device = "/nix/persist/home/elen/.mozilla"; 103 fsType = "none"; 104 options = [ "bind" ]; 105 }; 106 107 fileSystems."/home/elen/.npm" = 108 { device = "/nix/persist/home/elen/.npm"; 109 fsType = "none"; 110 options = [ "bind" ]; 111 }; 112 113 fileSystems."/home/elen/.npm-packages" = 114 { device = "/nix/persist/home/elen/.npm-packages"; 115 fsType = "none"; 116 options = [ "bind" ]; 117 }; 118 119 fileSystems."/home/elen/.pip" = 120 { device = "/nix/persist/home/elen/.pip"; 121 fsType = "none"; 122 options = [ "bind" ]; 123 }; 124 125 fileSystems."/home/elen/.rustup" = 126 { device = "/nix/persist/home/elen/.rustup"; 127 fsType = "none"; 128 options = [ "bind" ]; 129 }; 130 131 fileSystems."/home/elen/.ssh" = 132 { device = "/nix/persist/home/elen/.ssh"; 133 fsType = "none"; 134 options = [ "bind" ]; 135 }; 136 137 fileSystems."/home/elen/.steam" = 138 { device = "/nix/persist/home/elen/.steam"; 139 fsType = "none"; 140 options = [ "bind" ]; 141 }; 142 143 fileSystems."/home/elen/.vscode" = 144 { device = "/nix/persist/home/elen/.vscode"; 145 fsType = "none"; 146 options = [ "bind" ]; 147 }; 148 149 fileSystems."/home/elen/Android" = 150 { device = "/nix/persist/home/elen/Android"; 151 fsType = "none"; 152 options = [ "bind" ]; 153 }; 154 155 fileSystems."/home/elen/Books" = 156 { device = "/nix/persist/home/elen/Books"; 157 fsType = "none"; 158 options = [ "bind" ]; 159 }; 160 161 fileSystems."/home/elen/Documents" = 162 { device = "/nix/persist/home/elen/Documents"; 163 fsType = "none"; 164 options = [ "bind" ]; 165 }; 166 167 fileSystems."/home/elen/Downloads" = 168 { device = "/nix/persist/home/elen/Downloads"; 169 fsType = "none"; 170 options = [ "bind" ]; 171 }; 172 173 fileSystems."/home/elen/Games" = 174 { device = "/nix/persist/home/elen/Games"; 175 fsType = "none"; 176 options = [ "bind" ]; 177 }; 178 179 fileSystems."/home/elen/Music" = 180 { device = "/nix/persist/home/elen/Music"; 181 fsType = "none"; 182 options = [ "bind" ]; 183 }; 184 185 fileSystems."/home/elen/Pictures" = 186 { device = "/nix/persist/home/elen/Pictures"; 187 fsType = "none"; 188 options = [ "bind" ]; 189 }; 190 191 fileSystems."/home/elen/Sec" = 192 { device = "/nix/persist/home/elen/Sec"; 193 fsType = "none"; 194 options = [ "bind" ]; 195 }; 196 197 fileSystems."/home/elen/Src" = 198 { device = "/nix/persist/home/elen/Src"; 199 fsType = "none"; 200 options = [ "bind" ]; 201 }; 202 203 fileSystems."/home/elen/Tools" = 204 { device = "/nix/persist/home/elen/Tools"; 205 fsType = "none"; 206 options = [ "bind" ]; 207 }; 208 209 fileSystems."/home/elen/Vault" = 210 { device = "/nix/persist/home/elen/Vault"; 211 fsType = "none"; 212 options = [ "bind" ]; 213 }; 214 215 fileSystems."/home/elen/Videos" = 216 { device = "/nix/persist/home/elen/Videos"; 217 fsType = "none"; 218 options = [ "bind" ]; 219 }; 220 221 fileSystems."/root/.ssh" = 222 { device = "/nix/persist/root/.ssh"; 223 fsType = "none"; 224 options = [ "bind" ]; 225 }; 226 227 fileSystems."/tmp" = 228 { device = "/dev/disk/by-uuid/1b668bcc-0aa3-4518-90ae-0046cbbffe2b"; 229 fsType = "btrfs"; 230 options = [ "subvol=persist/tmp" ]; 231 }; 232 233 fileSystems."/efi" = 234 { device = "/dev/disk/by-uuid/2D56-9866"; 235 fsType = "vfat"; 236 }; 237 238 swapDevices = 239 [ { device = "/dev/disk/by-uuid/6284e5c0-c5ed-42ba-820c-47d43002caaa"; } 240 ]; 241 242 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 243 # (the default) this is the recommended approach. When using systemd-networkd it's 244 # still possible to use this option, but it's recommended to use it in conjunction 245 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 246 networking.useDHCP = lib.mkDefault true; 247 # networking.interfaces.dae0.useDHCP = lib.mkDefault true; 248 # networking.interfaces.tailscale0.useDHCP = lib.mkDefault true; 249 # networking.interfaces.wg0.useDHCP = lib.mkDefault true; 250 # networking.interfaces.wg1.useDHCP = lib.mkDefault true; 251 # networking.interfaces.wlan0.useDHCP = lib.mkDefault true; 252 253 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 254 hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 255 }