2022-10-16 17:01:58 +00:00
|
|
|
{ config, pkgs, pkgs-unstable, ... }:
|
2020-08-23 23:31:28 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
boot = {
|
2022-10-16 17:01:58 +00:00
|
|
|
kernelPackages = pkgs-unstable.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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|