nixos-configuration/machines/cadmium/hardware-configuration.nix
2021-11-17 16:08:19 +00:00

58 lines
1.2 KiB
Nix

{ modulesPath, ... }:
{
imports = [
"${modulesPath}/installer/scan/not-detected.nix"
];
boot = {
initrd = {
availableKernelModules = [
"aes_generic"
"ahci"
"cryptd"
"ehci_pci"
"nvme"
"sd_mod"
"sr_mod"
"usb_storage"
"usbhid"
"xhci_pci"
];
kernelModules = [ "dm-snapshot" ];
luks.devices = {
pvcrypt = {
device = "/dev/disk/by-uuid/b706883f-3979-41ea-b72e-497c0ada5092";
preLVM = true;
allowDiscards = true;
};
};
};
kernelModules = [ "kvm-amd" ];
kernelParams = [ "radeon.dpm=1" ];
loader = {
systemd-boot.enable = true;
efi.efiSysMountPoint = "/boot";
efi.canTouchEfiVariables = true;
};
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/6de83731-af29-4ba2-a0b2-48d3a1f5537e";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-uuid/D384-54D8";
fsType = "vfat";
};
"/home" = {
device = "/dev/disk/by-uuid/f14ae966-ac3f-467f-9263-ba9136967782";
fsType = "ext4";
noCheck = true;
};
};
nix.maxJobs = 8;
powerManagement.cpuFreqGovernor = "powersave";
}