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

25 lines
554 B
Nix
Raw Normal View History

2023-08-30 20:58:52 +00:00
{ config, pkgs, ... }:
2020-08-23 23:31:28 +00:00
{
boot = {
2023-08-30 20:58:52 +00:00
kernelPackages = pkgs.linuxPackages_latest;
2022-09-17 18:59:21 +00:00
kernelParams = [ "fbcon=rotate:1" ];
2020-08-23 23:31:28 +00:00
kernel.sysctl."vm.swappiness" = 5;
2023-06-06 00:51:11 +00:00
tmp.cleanOnBoot = true;
2020-08-23 23:31:28 +00:00
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
initrd = {
luks.devices."${config.networking.hostName}" = {
name = config.networking.hostName;
2022-09-17 18:59:21 +00:00
device = "/dev/disk/by-uuid/eb0e5aaf-afa3-43e4-89b3-af4a3f7f0546";
2020-08-23 23:31:28 +00:00
preLVM = true;
allowDiscards = true;
};
};
};
}