summaryrefslogtreecommitdiff
path: root/configuration/hardware.nix
diff options
context:
space:
mode:
authorcoasteen <coasteen@proton.me>2026-07-09 10:46:52 +0330
committercoasteen <coasteen@proton.me>2026-07-09 10:46:52 +0330
commita3008666c6c75ff61b1fc329b4d962a6c367d5f0 (patch)
treea203a54b3c61884ea13957cf18284f6c83f8e64d /configuration/hardware.nix
init nixHEADmaster
Diffstat (limited to 'configuration/hardware.nix')
-rw-r--r--configuration/hardware.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/configuration/hardware.nix b/configuration/hardware.nix
new file mode 100644
index 0000000..7de8fe9
--- /dev/null
+++ b/configuration/hardware.nix
@@ -0,0 +1,25 @@
+{ config, lib, modulesPath, ... }:
+
+{
+ 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" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/".device = "/dev/disk/by-label/nixos";
+ fileSystems."/".fsType = "ext4";
+
+ fileSystems."/boot".device = "/dev/disk/by-label/boot";
+ fileSystems."/boot".fsType = "vfat";
+ fileSystems."/boot".options = [ "fmask=0022" "dmask=0022" ];
+
+ fileSystems."/media/drive".device = "/dev/disk/by-uuid/facf5a78-8872-437c-4345-50a28c894aca";
+ fileSystems."/media/drive".fsType = "btrfs";
+
+ swapDevices = [{ device = "/dev/disk/by-label/swap"; }];
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}