formatting + organizing

This commit is contained in:
mjallen18
2024-07-24 21:43:55 -05:00
parent 4b4b419873
commit c5a9ff512c
20 changed files with 744 additions and 652 deletions

52
hosts/nas/boot.nix Normal file
View File

@@ -0,0 +1,52 @@
{
inputs,
outputs,
config,
lib,
pkgs,
...
}:
let
configLimit = 5;
kernel = pkgs.linuxPackages_latest;
in
{
# Configure bootloader with lanzaboot and secureboot
boot = {
loader = {
systemd-boot = {
enable = true;
configurationLimit = configLimit;
};
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
};
# Override kernel to latest
kernelPackages = kernel;
kernelParams = [
"nohibernate"
"amd_pstate=active"
];
consoleLogLevel = 3;
bootspec.enable = true;
initrd = {
kernelModules = [
"tpm"
"tpm_tis"
"tpm_crb"
"tpm_infineon"
];
systemd = {
enable = true;
enableTpm2 = true;
};
};
};
}