diff options
Diffstat (limited to 'configuration/hardware.nix')
| -rw-r--r-- | configuration/hardware.nix | 44 |
1 files changed, 26 insertions, 18 deletions
diff --git a/configuration/hardware.nix b/configuration/hardware.nix index bac2abd..d3b8923 100644 --- a/configuration/hardware.nix +++ b/configuration/hardware.nix @@ -2,24 +2,32 @@ { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; - - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelParams = [ "kvm-amd" "snd_hda_intel.probe_mask=1" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/".device = "/dev/nvme0n1p2"; - fileSystems."/".fsType = "ext4"; - - fileSystems."/boot".device = "/dev/nvme0n1p1"; - fileSystems."/boot".fsType = "vfat"; - fileSystems."/boot".options = [ "fmask=0022" "dmask=0022" ]; - - fileSystems."/media/drive".device = "/dev/sda2"; - fileSystems."/media/drive".fsType = "btrfs"; - - swapDevices = [{ device = "/dev/nvme0n1p3"; }]; - + boot = { + initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; + initrd.kernelModules = [ ]; + kernelParams = [ "kvm-amd" "snd_hda_intel.probe_mask=1" ]; + extraModulePackages = [ ]; + }; + fileSystems = { + "/" = { + device = "UUID=721879c7-fed3-458d-bace-6a7e0a4f96b4"; + fsType = "ext4"; + }; + "/boot" = { + device = "UUID=91CC-4E7B"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + "/media/drive" = { + device = "UUID=93428d05-b7b8-7ba5-b81a-a8c393c787d8"; + fsType = "btrfs"; + }; + }; + swapDevices = [ + { + device = "UUID=203c900b-100e-4352-aa6e-947cc4001271"; + } + ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; } |
