2020-11-05 21:28:23 +01:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
{
|
2021-12-29 18:49:51 +01:00
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
2020-11-05 21:28:23 +01:00
|
|
|
|
2021-12-29 18:49:51 +01:00
|
|
|
boot = {
|
|
|
|
|
initrd = {
|
|
|
|
|
availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ];
|
|
|
|
|
kernelModules = [];
|
|
|
|
|
luks.devices."crypted".device = "/dev/disk/by-uuid/493cb228-c292-4f71-9f38-dcb3e96dec47";
|
|
|
|
|
};
|
|
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
|
|
|
extraModulePackages = [ ];
|
|
|
|
|
loader.grub = {
|
|
|
|
|
enable = true;
|
|
|
|
|
version = 2;
|
|
|
|
|
efiSupport = true;
|
|
|
|
|
efiInstallAsRemovable = true;
|
|
|
|
|
device = "/dev/sda";
|
|
|
|
|
};
|
|
|
|
|
};
|
2020-11-05 21:28:23 +01:00
|
|
|
|
2021-12-29 18:49:51 +01:00
|
|
|
fileSystems = {
|
|
|
|
|
"/" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/ff47c479-e6d4-4cd6-93f1-9685f4018bc6";
|
2020-11-05 21:28:23 +01:00
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
2021-12-29 18:49:51 +01:00
|
|
|
"/boot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/D4AC-91B0";
|
2020-11-05 21:28:23 +01:00
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
2021-12-29 18:49:51 +01:00
|
|
|
};
|
2020-11-05 21:28:23 +01:00
|
|
|
|
|
|
|
|
swapDevices = [ ];
|
2020-11-10 22:17:47 +01:00
|
|
|
zramSwap.enable = true;
|
2020-11-05 21:28:23 +01:00
|
|
|
|
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
|
}
|