diff --git a/systems/dalinar/hardware-configuration.nix b/systems/dalinar/hardware-configuration.nix index a931f5a..335ec57 100644 --- a/systems/dalinar/hardware-configuration.nix +++ b/systems/dalinar/hardware-configuration.nix @@ -8,24 +8,36 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "sr_mod" "rtsx_usb_sdmmc" ]; + boot.initrd.availableKernelModules = [ "nvme" "uas" "rtsx_usb_sdmmc" "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; + boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/103a24d5-ffb5-4f7c-ab68-48e0b766b3ac"; + { device = "/dev/disk/by-label/NIXROOT"; fsType = "btrfs"; - options = [ "subvol=@" "noatime" "nodiratime" "compress=zstd" ]; + options = [ "subvol=@" "noatime" "compress=zstd" ]; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-label/NIXROOT"; + fsType = "btrfs"; + options = [ "subvol=@home" "noatime" "compress=zstd" ]; + }; + + fileSystems."/nix" = + { device = "/dev/disk/by-label/NIXROOT"; + fsType = "btrfs"; + options = [ "subvol=@nix" "noatime" "compress=zstd" ]; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/55C5-7725"; + { device = "/dev/disk/by-label/NIXBOOT"; fsType = "vfat"; }; fileSystems."/storage" = - { device = "/dev/disk/by-uuid/f1804953-14e5-42db-a974-1e18f16d884c"; + { device = "/dev/disk/by-label/STORAGE"; fsType = "btrfs"; options = [ "noatime" "nodiratime" "compress=zstd" ]; }; @@ -40,5 +52,6 @@ # networking.interfaces.enp2s0.useDHCP = lib.mkDefault true; # networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }