From f6387b341f6fa918556a54b9622519b9c05a842a Mon Sep 17 00:00:00 2001 From: Corwin Perren Date: Sun, 7 Dec 2025 18:20:20 -0800 Subject: [PATCH] Fix clust-09 hardware --- hosts/cap-clust-09/hardware-configuration.nix | 57 +++++++------------ 1 file changed, 19 insertions(+), 38 deletions(-) diff --git a/hosts/cap-clust-09/hardware-configuration.nix b/hosts/cap-clust-09/hardware-configuration.nix index 81bb55a..acff45e 100644 --- a/hosts/cap-clust-09/hardware-configuration.nix +++ b/hosts/cap-clust-09/hardware-configuration.nix @@ -1,52 +1,33 @@ # 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, - ... -}: +{ config, lib, pkgs, modulesPath, ... }: { - imports = [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ - "xhci_pci" - "ahci" - "ehci_pci" - "usbhid" - "usb_storage" - "sd_mod" - ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "ehci_pci" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ - "kvm-amd" - "amdgpu" - ]; + boot.kernelModules = [ "kvm-amd" "amdgpu" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = { - device = "/dev/disk/by-uuid/affec1c2-bf7c-499e-80a6-6615fd163e1a"; - fsType = "ext4"; - }; + fileSystems."/" = + { device = "/dev/disk/by-uuid/affec1c2-bf7c-499e-80a6-6615fd163e1a"; + fsType = "ext4"; + }; - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/9E1A-C3DA"; - fsType = "vfat"; - options = [ - "fmask=0077" - "dmask=0077" + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/9E1A-C3DA"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/a17f3a16-78fb-494d-8319-89e31e1defae"; } ]; - }; - - swapDevices = [ - { device = "/dev/disk/by-uuid/a17f3a16-78fb-494d-8319-89e31e1defae"; } - ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} +} \ No newline at end of file