2023-06-10 16:41:06 -04:00
|
|
|
{
|
2023-06-10 17:37:24 -04:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
2023-06-10 16:41:06 -04:00
|
|
|
|
2024-02-01 15:48:47 -05:00
|
|
|
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 = [];
|
|
|
|
};
|
2023-06-10 17:37:24 -04:00
|
|
|
};
|
2023-06-10 16:41:06 -04:00
|
|
|
|
2024-04-22 18:48:07 -04:00
|
|
|
zramSwap = {
|
|
|
|
enable = true;
|
|
|
|
swapDevices = 1;
|
|
|
|
algorithm = "zstd";
|
2024-01-15 02:28:23 -05:00
|
|
|
};
|
|
|
|
|
2023-06-10 16:41:06 -04:00
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2023-06-11 00:42:13 -04:00
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
2023-06-10 16:41:06 -04:00
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
}
|