1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/systems/manakish/hardware-configuration.nix

44 lines
972 B
Nix
Raw Normal View History

2020-11-05 21:28:23 +01:00
{
2022-03-10 21:52:12 +01:00
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
2020-11-05 21:28:23 +01:00
boot = {
initrd = {
2022-03-10 21:52:12 +01:00
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";
};
2022-03-10 21:52:12 +01:00
kernelModules = ["kvm-intel"];
extraModulePackages = [];
loader.grub = {
enable = true;
version = 2;
efiSupport = true;
efiInstallAsRemovable = true;
device = "/dev/sda";
configurationLimit = 5;
};
};
2020-11-05 21:28:23 +01:00
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/ff47c479-e6d4-4cd6-93f1-9685f4018bc6";
2020-11-05 21:28:23 +01:00
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-uuid/D4AC-91B0";
2020-11-05 21:28:23 +01:00
fsType = "vfat";
};
};
2020-11-05 21:28:23 +01:00
2022-03-10 21:52:12 +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";
}