nixos-configs/nixosModules/systemd-boot.nix

17 lines
398 B
Nix
Raw Normal View History

{ lib, config, ... }:
2025-09-14 14:01:42 +02:00
{
options.my.systemdBoot.enable = lib.mkEnableOption "systemd-boot bootloader";
config = lib.mkIf config.my.systemdBoot.enable {
boot.loader = {
timeout = 3;
efi.canTouchEfiVariables = true;
systemd-boot = {
enable = true;
editor = false; # do not allow changing kernel parameters
consoleMode = "max";
};
2025-09-14 14:01:42 +02:00
};
};
}