mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 00:21:34 +01:00
20 lines
486 B
Nix
20 lines
486 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
options.myConfig.boot-loader.systemd-boot.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.myConfig.boot-loader.systemd-boot.enable {
|
|
boot.tmp.cleanOnBoot = true;
|
|
boot.loader = {
|
|
systemd-boot = {
|
|
enable = true;
|
|
editor = false;
|
|
configurationLimit = 50;
|
|
};
|
|
efi.canTouchEfiVariables = true;
|
|
timeout = 3;
|
|
};
|
|
};
|
|
}
|