2021-12-29 18:49:51 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
{
|
2020-06-10 17:37:25 +02:00
|
|
|
imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ];
|
2019-01-30 17:08:07 +01:00
|
|
|
|
2021-12-29 18:49:51 +01:00
|
|
|
boot = {
|
|
|
|
|
initrd.availableKernelModules = [ "ahci" "xhci_pci" "usb_storage" "sd_mod" "sdhci_acpi" "rtsx_usb_sdmmc" ];
|
|
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
|
|
|
extraModulePackages = [ ];
|
|
|
|
|
loader = {
|
|
|
|
|
systemd-boot = {
|
|
|
|
|
enable = true;
|
|
|
|
|
configurationLimit = 5;
|
|
|
|
|
};
|
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
};
|
2020-06-10 17:37:25 +02:00
|
|
|
};
|
2019-01-30 17:08:07 +01:00
|
|
|
|
2021-12-29 18:49:51 +01:00
|
|
|
fileSystems = {
|
|
|
|
|
"/" = {
|
|
|
|
|
device = "/dev/disk/by-label/nixos";
|
|
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
|
|
|
|
"/boot" = {
|
|
|
|
|
device = "/dev/disk/by-label/boot";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
2020-06-10 17:37:25 +02:00
|
|
|
};
|
2019-01-30 17:08:07 +01:00
|
|
|
|
2021-12-29 18:49:51 +01:00
|
|
|
swapDevices = [{ device = "/dev/disk/by-label/swap"; }];
|
2019-01-30 17:08:07 +01:00
|
|
|
|
|
|
|
|
nix.maxJobs = lib.mkDefault 4;
|
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
|
}
|