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

56 lines
1.1 KiB
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,
...
2025-12-28 13:39:42 +01:00
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2020-11-05 21:28:23 +01:00
boot = {
initrd = {
2025-12-28 13:39:42 +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";
};
2025-12-28 13:39:42 +01:00
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
loader.grub = {
enable = true;
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";
};
2023-01-06 12:28:12 +01:00
"/mnt/sd-card" = {
device = "/dev/disk/by-id/mmc-5E4S5_0x4c585d15-part1";
fsType = "ext4";
2025-12-28 13:39:42 +01:00
options = [ "nofail" ];
2023-01-06 12:28:12 +01:00
};
};
2020-11-05 21:28:23 +01:00
2025-12-28 13:39:42 +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";
}