mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-14 16:36:24 +00:00
36 lines
770 B
Nix
36 lines
770 B
Nix
{
|
|
imports = [
|
|
../common/optional/ephemeral-btrfs.nix
|
|
../common/optional/encrypted-root.nix
|
|
];
|
|
|
|
boot = {
|
|
initrd = {
|
|
availableKernelModules = [ "ahci" "xhci_pci" "nvme" "thunderbolt" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
|
kernelModules = [ "kvm-amd" ];
|
|
};
|
|
loader = {
|
|
systemd-boot = {
|
|
enable = true;
|
|
consoleMode = "max";
|
|
};
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
};
|
|
|
|
fileSystems = {
|
|
"/boot" = {
|
|
device = "/dev/disk/by-label/ESP";
|
|
fsType = "vfat";
|
|
};
|
|
};
|
|
|
|
swapDevices = [{
|
|
device = "/swap/swapfile";
|
|
size = 8196;
|
|
}];
|
|
|
|
nixpkgs.hostPlatform.system = "x86_64-linux";
|
|
hardware.cpu.amd.updateMicrocode = true;
|
|
powerManagement.cpuFreqGovernor = "powersave";
|
|
}
|