44 lines
831 B
Nix
44 lines
831 B
Nix
{ lib, pkgs, ... }:
|
|
let
|
|
configLimit = 5;
|
|
default = "@saved";
|
|
kernel = pkgs.linuxPackages_latest;
|
|
in
|
|
{
|
|
# Configure bootloader with lanzaboot and secureboot
|
|
boot = {
|
|
loader = {
|
|
systemd-boot = {
|
|
enable = lib.mkForce false;
|
|
};
|
|
|
|
efi = {
|
|
canTouchEfiVariables = true;
|
|
efiSysMountPoint = "/boot";
|
|
};
|
|
};
|
|
|
|
lanzaboote = {
|
|
enable = true;
|
|
pkiBundle = "/etc/secureboot";
|
|
settings = {
|
|
default = default;
|
|
console-mode = "max";
|
|
};
|
|
configurationLimit = configLimit;
|
|
};
|
|
|
|
kernelPackages = kernel;
|
|
|
|
kernelParams = [
|
|
"quiet"
|
|
# needed cause ssd powersaving is broken af I guess
|
|
"nvme_core.default_ps_max_latency_us=0"
|
|
"pcie_aspm=off"
|
|
];
|
|
|
|
consoleLogLevel = 3;
|
|
bootspec.enable = true;
|
|
};
|
|
}
|