mirror of
https://github.com/gburd/nix-config.git
synced 2024-07-12 12:07:17 +00:00
![Greg Burd](/assets/img/avatar_default.png)
Many thangs to the hard work and generous availability of: git@github.com:Misterio77/nix-config.git
37 lines
741 B
Nix
37 lines
741 B
Nix
{
|
|
imports = [
|
|
../common/optional/ephemeral-btrfs.nix
|
|
../common/optional/encrypted-root.nix
|
|
];
|
|
|
|
boot = {
|
|
initrd = {
|
|
availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "sd_mod" ];
|
|
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";
|
|
}
|