diff options
| author | caley <195605706+cqley@users.noreply.github.com> | 2026-07-22 00:46:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-22 00:46:55 +0200 |
| commit | cb3865f0eec52e758907c343f5cf3f081a3322dd (patch) | |
| tree | f40c7999b990f2465b652f8852388c78544dff3c /nixos/hosts | |
| parent | d49408cf322b299deba11066e9583953436a7283 (diff) | |
Create hardware-configuration.nix
Diffstat (limited to 'nixos/hosts')
| -rw-r--r-- | nixos/hosts/box/hardware-configuration.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nixos/hosts/box/hardware-configuration.nix b/nixos/hosts/box/hardware-configuration.nix new file mode 100644 index 0000000..305694a --- /dev/null +++ b/nixos/hosts/box/hardware-configuration.nix @@ -0,0 +1,29 @@ +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/86a14b4c-9a4e-4b03-a04e-6d4bfb887d12"; + fsType = "ext4"; + options = [ "noatime" ]; + }; + + fileSystems."/mnt/box" = { + device = "/dev/disk/by-uuid/70da8a3c-5590-4267-8361-1ec111f909da"; + fsType = "ext4"; + options = [ "noatime" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |
