2023-09-19 17:05:08 +00:00
|
|
|
{
|
2023-09-15 14:53:38 +00:00
|
|
|
imports = [
|
2023-09-20 13:09:16 +00:00
|
|
|
../common/optional/ephemeral-btrfs.nix
|
2023-09-15 14:53:38 +00:00
|
|
|
../common/optional/encrypted-root.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
initrd = {
|
2023-09-19 17:05:08 +00:00
|
|
|
availableKernelModules = [ "ahci" "xhci_pci" "nvme" "thunderbolt" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
2023-09-20 13:09:16 +00:00
|
|
|
kernelModules = [ "kvm-amd" ];
|
2023-09-15 14:53:38 +00:00
|
|
|
};
|
|
|
|
loader = {
|
|
|
|
systemd-boot = {
|
|
|
|
enable = true;
|
|
|
|
consoleMode = "max";
|
|
|
|
};
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-09-20 13:09:16 +00:00
|
|
|
fileSystems = {
|
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-label/ESP";
|
2023-09-15 14:53:38 +00:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2023-09-20 13:09:16 +00:00
|
|
|
};
|
2023-09-15 14:53:38 +00:00
|
|
|
|
|
|
|
swapDevices = [{
|
2023-09-20 13:09:16 +00:00
|
|
|
device = "/swap/swapfile";
|
|
|
|
size = 8196;
|
2023-09-15 14:53:38 +00:00
|
|
|
}];
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform.system = "x86_64-linux";
|
2023-09-20 13:09:16 +00:00
|
|
|
hardware.cpu.amd.updateMicrocode = true;
|
2023-09-15 14:53:38 +00:00
|
|
|
powerManagement.cpuFreqGovernor = "powersave";
|
|
|
|
}
|