2021-12-16 00:40:44 +01:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
2021-12-16 06:06:57 +01:00
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
2021-12-16 00:40:44 +01:00
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
|
2021-12-16 06:06:57 +01:00
|
|
|
boot.initrd.kernelModules = [ ];
|
2021-12-16 00:40:44 +01:00
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
2021-12-16 06:06:57 +01:00
|
|
|
boot.extraModulePackages = [ ];
|
2021-12-16 00:40:44 +01:00
|
|
|
|
2021-12-16 06:06:57 +01:00
|
|
|
fileSystems."/" = {
|
2022-05-23 05:17:55 +02:00
|
|
|
device = "/dev/disk/by-label/NIXROOT";
|
2021-12-16 06:06:57 +01:00
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2021-12-16 00:40:44 +01:00
|
|
|
|
2021-12-16 06:06:57 +01:00
|
|
|
fileSystems."/boot" = {
|
2022-05-23 05:17:55 +02:00
|
|
|
device = "/dev/disk/by-label/NIXBOOT";
|
2021-12-16 06:06:57 +01:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2021-12-16 00:40:44 +01:00
|
|
|
|
2021-12-16 06:06:57 +01:00
|
|
|
swapDevices = [
|
|
|
|
{ device = "/dev/disk/by-uuid/b87e2b8f-c835-4179-a428-fe466a846df0"; }
|
|
|
|
];
|
2021-12-16 00:40:44 +01:00
|
|
|
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
}
|