2022-03-10 21:52:12 +01:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
2023-02-22 10:02:55 +01:00
|
|
|
modulesPath,
|
2022-03-10 21:52:12 +01:00
|
|
|
...
|
|
|
|
|
}: {
|
2023-02-22 10:02:55 +01:00
|
|
|
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
2019-06-15 15:04:13 +02:00
|
|
|
|
2021-12-29 18:49:51 +01:00
|
|
|
boot = {
|
|
|
|
|
initrd = {
|
2022-03-10 21:52:12 +01:00
|
|
|
availableKernelModules = ["ehci_pci" "ahci" "xhci_pci" "usb_storage" "sd_mod" "sdhci_pci"];
|
2021-12-29 18:49:51 +01:00
|
|
|
luks.devices."luksmap".device = "/dev/disk/by-uuid/03b6abd0-e9ce-49c8-9659-a1d94f645d0f";
|
2022-03-10 21:52:12 +01:00
|
|
|
kernelModules = [];
|
2021-12-29 18:49:51 +01:00
|
|
|
};
|
2022-03-10 21:52:12 +01:00
|
|
|
kernelModules = ["kvm-intel"];
|
|
|
|
|
extraModulePackages = [];
|
2021-12-29 18:49:51 +01:00
|
|
|
loader = {
|
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
systemd-boot = {
|
|
|
|
|
enable = true;
|
|
|
|
|
configurationLimit = 5;
|
|
|
|
|
consoleMode = "max";
|
|
|
|
|
};
|
|
|
|
|
};
|
2020-06-10 17:37:25 +02:00
|
|
|
};
|
2019-06-15 15:04:13 +02:00
|
|
|
|
2021-12-29 18:49:51 +01:00
|
|
|
fileSystems = {
|
|
|
|
|
"/" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/66ced7b9-cfa7-40dd-a488-18ef91a337e0";
|
|
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
|
|
|
|
"/boot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/E1B1-1B9C";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
"/mnt/sd-card" = {
|
2022-10-02 09:59:10 +02:00
|
|
|
device = "/dev/disk/by-id/mmc-5E4S5_0xc5155d05-part1";
|
|
|
|
|
fsType = "ext4";
|
2022-03-25 17:06:03 +01:00
|
|
|
options = ["nofail"];
|
2021-12-29 18:49:51 +01:00
|
|
|
};
|
2020-06-10 17:37:25 +02:00
|
|
|
};
|
2019-06-15 15:04:13 +02:00
|
|
|
|
2021-12-28 15:40:25 +01:00
|
|
|
zramSwap.enable = false;
|
2019-06-15 15:04:13 +02:00
|
|
|
|
2022-07-19 22:00:36 +02:00
|
|
|
nix.settings.max-jobs = lib.mkDefault 4;
|
2019-06-15 15:04:13 +02:00
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
|
}
|