nixos-config/system/spike/boot-config.nix

29 lines
691 B
Nix
Raw Normal View History

2020-08-23 23:31:28 +00:00
{ config, pkgs, ... }:
{
boot = {
kernelPackages = pkgs.linuxPackages_latest;
2020-09-29 23:12:47 +00:00
kernelPatches = [ {
name = "increase_max_topo";
patch = ../../externals/patches/increase_max_topo.patch;
} ];
2020-08-23 23:31:28 +00:00
kernel.sysctl."vm.swappiness" = 5;
cleanTmpDir = true;
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
initrd = {
availableKernelModules = [ "battery" ]; # wat
luks.devices."${config.networking.hostName}" = {
name = config.networking.hostName;
device = "/dev/disk/by-uuid/9df93bae-80b9-48c2-be43-b73994afda5b";
preLVM = true;
allowDiscards = true;
};
};
};
}