nixos-config/modules/nixos/bootloader.nix
Jan-Bulthuis 5e23488cae Progress
2025-05-13 14:26:22 +02:00

21 lines
364 B
Nix

{ lib, config, ... }:
with lib;
let
cfg = config.modules.bootloader;
in
{
options.modules.bootloader = {
enable = mkEnableOption "bootloader";
};
config = mkIf cfg.enable {
# Bootloader
boot.loader = {
timeout = 0;
systemd-boot.enable = true;
systemd-boot.editor = false;
efi.canTouchEfiVariables = true;
};
};
}