57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{ modulesPath, ... }:
|
|
|
|
{
|
|
imports = [
|
|
"${modulesPath}/installer/scan/not-detected.nix"
|
|
];
|
|
|
|
hardware.cpu.amd.updateMicrocode = true;
|
|
|
|
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" ];
|
|
};
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/6de83731-af29-4ba2-a0b2-48d3a1f5537e";
|
|
fsType = "ext4";
|
|
};
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/D384-54D8";
|
|
fsType = "vfat";
|
|
options = [ "nodev" "nosuid" "noexec" ];
|
|
};
|
|
"/home" = {
|
|
device = "/dev/disk/by-uuid/f14ae966-ac3f-467f-9263-ba9136967782";
|
|
fsType = "ext4";
|
|
noCheck = true;
|
|
options = [ "nodev" "nosuid" ];
|
|
};
|
|
};
|
|
|
|
nix.settings.max-jobs = 8;
|
|
powerManagement.cpuFreqGovernor = "powersave";
|
|
}
|