2021-11-25 11:55:30 +00:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
2021-12-11 05:37:27 +00:00
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
2021-11-25 11:55:30 +00:00
|
|
|
|
2021-12-11 05:37:27 +00:00
|
|
|
boot.initrd.availableKernelModules =
|
2022-07-17 05:25:36 +00:00
|
|
|
[ "xhci_pci" "ahci" "nvme" "usb_storage" "uas" "sd_mod" ];
|
2021-11-25 11:55:30 +00:00
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
2021-12-11 05:37:27 +00:00
|
|
|
fileSystems."/" = {
|
2021-12-26 10:43:49 +00:00
|
|
|
label = "root";
|
2022-08-27 05:30:04 +00:00
|
|
|
options = [
|
|
|
|
"defaults"
|
|
|
|
"noatime"
|
|
|
|
];
|
2021-12-11 05:37:27 +00:00
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2021-11-25 11:55:30 +00:00
|
|
|
|
2021-12-11 05:37:27 +00:00
|
|
|
fileSystems."/boot" = {
|
2021-12-26 10:43:49 +00:00
|
|
|
label = "boot";
|
2021-12-11 05:37:27 +00:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2021-11-25 11:55:30 +00:00
|
|
|
|
2021-12-11 05:37:27 +00:00
|
|
|
swapDevices = [{ label = "swap"; }];
|
2021-11-25 11:55:30 +00:00
|
|
|
|
2022-07-17 05:25:36 +00:00
|
|
|
networking.useDHCP = false;
|
|
|
|
networking.interfaces.enp1s0.useDHCP = true;
|
|
|
|
networking.interfaces.wlp2s0.useDHCP = true;
|
|
|
|
|
2021-11-25 11:55:30 +00:00
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
2022-07-05 14:05:59 +00:00
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault true;
|
2021-11-25 11:55:30 +00:00
|
|
|
}
|