diff --git a/nixos/servnerr-3/hardware-configuration.nix b/nixos/servnerr-3/hardware-configuration.nix index aebe9ad..ace0904 100644 --- a/nixos/servnerr-3/hardware-configuration.nix +++ b/nixos/servnerr-3/hardware-configuration.nix @@ -1,12 +1,13 @@ # 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. -{ lib, ... }: +{ config, lib, pkgs, modulesPath, ... }: { - imports = [ ]; + imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "sd_mod" ]; + boot.initrd.availableKernelModules = + [ "nvme" "xhci_pci" "ahci" "mpt3sas" "uas" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; @@ -26,6 +27,16 @@ fsType = "zfs"; }; + fileSystems."/primary/vm" = { + device = "primary/vm"; + fsType = "zfs"; + }; + + fileSystems."/primary/misc" = { + device = "primary/misc"; + fsType = "zfs"; + }; + fileSystems."/primary/media" = { device = "primary/media"; fsType = "zfs"; @@ -36,23 +47,15 @@ fsType = "zfs"; }; - fileSystems."/primary/misc" = { - device = "primary/misc"; - fsType = "zfs"; - }; - fileSystems."/primary/text" = { device = "primary/text"; fsType = "zfs"; }; - fileSystems."/primary/vm" = { - device = "primary/vm"; - fsType = "zfs"; - }; - swapDevices = [{ device = "/dev/disk/by-uuid/51302f97-4b06-4bc1-8200-13217440af0f"; }]; - nix.maxJobs = lib.mkDefault 16; + powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; + hardware.cpu.amd.updateMicrocode = + lib.mkDefault config.hardware.enableRedistributableFirmware; }