From 1ca40aee8d725a84866ef4f90d2ff51351b1cc46 Mon Sep 17 00:00:00 2001 From: Maaz Khokhar Date: Mon, 6 Jul 2026 00:15:32 -0500 Subject: [PATCH] added the hardware-configuration file --- hosts/test/configuration.nix | 2 +- hosts/test/hardware-configuration.nix | 40 +++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 hosts/test/hardware-configuration.nix diff --git a/hosts/test/configuration.nix b/hosts/test/configuration.nix index 10c43b8..4fdb6fb 100644 --- a/hosts/test/configuration.nix +++ b/hosts/test/configuration.nix @@ -4,7 +4,7 @@ { imports = [ - #./hardware-configuration.nix + ./hardware-configuration.nix ../../modules/core ../../modules/networking ../../modules/virtualization diff --git a/hosts/test/hardware-configuration.nix b/hosts/test/hardware-configuration.nix new file mode 100644 index 0000000..c46dced --- /dev/null +++ b/hosts/test/hardware-configuration.nix @@ -0,0 +1,40 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ + config, + lib, + pkgs, + modulesPath, + ... +}: + +{ + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ + "nvme" + "xhci_pci" + "usb_storage" + "sd_mod" + ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/12CE-A600"; + fsType = "vfat"; + options = [ + "fmask=0077" + "dmask=0077" + ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}