27 lines
467 B
Nix
27 lines
467 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
ccfg = import ../config.nix;
|
|
cfg_path = "${ccfg.custom_config_key}".boot.systemd;
|
|
cfg = config.${cfg_path};
|
|
in
|
|
{
|
|
options.${cfg_path} = {
|
|
enable = lib.mkEnableOption "Systemd bootloader";
|
|
};
|
|
config = lib.mkIf cfg.enable {
|
|
boot.loader = {
|
|
systemd-boot = {
|
|
enable = true;
|
|
consoleMode = "keep";
|
|
};
|
|
timeout = 5;
|
|
efi = {
|
|
canTouchEfiVariables = true;
|
|
};
|
|
};
|
|
};
|
|
}
|