Files
nixconfig/modules/nixos/system/hw/boot/default.nix
2026-06-12 00:01:44 +02:00

26 lines
650 B
Nix

{ lib, config, ... }:
let isSANDBOX = builtins.elem config.syscfg.hostname [ "sandbox" ];
in {
config = lib.mkIf (!isSANDBOX) {
boot.kernelParams = [
"async_probe=tpm*" # Load TPM in parallel without blocking udev
"8250.nr_uarts=0" # Stop scanning for old motherboard serial lines (ttyS0-S3)
];
boot.initrd = {
compressor = "zstd";
checkJournalingFS = false;
};
boot.loader = {
timeout = 2;
systemd-boot = {
enable = true;
configurationLimit = 8;
};
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
};
};
}