summaryrefslogtreecommitdiffstats
path: root/configuration/hardware.nix
diff options
context:
space:
mode:
authorcoast <coasteen@proton.me>2026-09-14 16:32:33 +0330
committercoast <coasteen@proton.me>2026-09-14 16:32:33 +0330
commit04a4ffd63ab6b98b60794e8ad32c52fb96a39731 (patch)
tree61dae0cc916f6b8c5376ea7412951a8ab40c0600 /configuration/hardware.nix
parent38b9470f8d35ff235ecc240105a88b20456ecda9 (diff)
downloadnix-04a4ffd63ab6b98b60794e8ad32c52fb96a39731.tar.gz
nix-04a4ffd63ab6b98b60794e8ad32c52fb96a39731.tar.bz2
nix-04a4ffd63ab6b98b60794e8ad32c52fb96a39731.tar.xz
nix-04a4ffd63ab6b98b60794e8ad32c52fb96a39731.tar.zst
update
Diffstat (limited to 'configuration/hardware.nix')
-rw-r--r--configuration/hardware.nix44
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;
}