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-08-06 22:44:59 +02:00
|
|
|
device = "/dev/disk/by-label/nixos";
|
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-08-06 22:44:59 +02:00
|
|
|
device = "/dev/disk/by-label/boot";
|
2021-12-16 06:06:57 +01:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2021-12-16 00:40:44 +01:00
|
|
|
|
2022-08-06 22:44:59 +02:00
|
|
|
swapDevices = lib.singleton {
|
|
|
|
device = "/dev/disk/by-label/swap";
|
|
|
|
};
|
2021-12-16 00:40:44 +01:00
|
|
|
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
}
|