nixos-config/modules/nixos/system/boot/default.nix
2024-04-04 19:37:06 +02:00

23 lines
370 B
Nix

{
options,
config,
pkgs,
lib,
...
}:
with lib;
with lib.wyrdgard;
let
cfg = config.wyrdgard.system.boot;
in
{
options.wyrdgard.system.boot = with types; {
enable = mkBoolOpt false "Whether or not to enable booting.";
};
config = mkIf cfg.enable {
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
};
}