mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 00:21:34 +01:00
20 lines
478 B
Nix
20 lines
478 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;
|
|
loader = {
|
|
systemd-boot = {
|
|
enable = true;
|
|
editor = false;
|
|
configurationLimit = 20;
|
|
};
|
|
efi.canTouchEfiVariables = true;
|
|
timeout = 0;
|
|
};
|
|
};
|
|
systemd.watchdog.rebootTime = "10";
|
|
};
|
|
}
|