snowflake/hosts/ame/hardware.nix
2024-04-23 10:55:50 -04:00

43 lines
914 B
Nix

{
inputs,
config,
lib,
modulesPath,
...
}: {
imports = [
inputs.disko.nixosModules.default
(modulesPath + "/installer/scan/not-detected.nix")
./disko-config.nix
];
boot = {
kernelModules = ["kvm-intel"];
extraModulePackages = [];
loader = {
systemd-boot = {
enable = true;
configurationLimit = 8;
};
efi = {
canTouchEfiVariables = true;
};
};
initrd = {
availableKernelModules = ["xhci_pci" "ahci" "usb_storage" "sd_mod"];
kernelModules = [];
};
};
zramSwap = {
enable = true;
swapDevices = 1;
algorithm = "zstd";
};
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}