refactor: move NixOS hardware configs from hardware/ to hosts/<host>/

This commit is contained in:
Felix Schröter 2025-06-06 16:53:06 +02:00
parent 5bc625a883
commit 7db7982b41
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 2 additions and 3 deletions
hosts/home-pc

View file

@ -0,0 +1,26 @@
# 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,
...
}:
{
boot.initrd.availableKernelModules = [
"nvme"
"ahci"
"xhci_pci"
"usb_storage"
"usbhid"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}