updates and some reorganizing

This commit is contained in:
mjallen18
2024-07-23 14:06:20 -05:00
parent 6104df2c69
commit 4b4b419873
7 changed files with 243 additions and 184 deletions

40
hosts/desktop/boot.nix Normal file
View File

@@ -0,0 +1,40 @@
{ config, lib, outputs, pkgs, ... }:
{
# Configure bootloader with lanzaboot and secureboot
boot = {
loader = {
systemd-boot = {
enable = false;
configurationLimit = 2;
};
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
};
lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
settings = {
default = "@saved";
console-mode = "max";
};
configurationLimit = 5;
};
# Override kernel to latest
kernelPackages = pkgs.linuxPackages_latest;
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;
};
}