From cb3865f0eec52e758907c343f5cf3f081a3322dd Mon Sep 17 00:00:00 2001 From: caley <195605706+cqley@users.noreply.github.com> Date: Wed, 22 Jul 2026 00:46:55 +0200 Subject: Create hardware-configuration.nix --- nixos/hosts/box/hardware-configuration.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 nixos/hosts/box/hardware-configuration.nix (limited to 'nixos') 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; +} -- cgit v1.3.1