mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
Extract bootloader and silent boot configs into separate files
This commit is contained in:
parent
9428e46545
commit
e551976a8a
3 changed files with 37 additions and 38 deletions
18
modules/system/boot/loader.nix
Normal file
18
modules/system/boot/loader.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ 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 = 20;
|
||||
};
|
||||
efi.canTouchEfiVariables = true;
|
||||
timeout = 0;
|
||||
};
|
||||
systemd.watchdog.rebootTime = "10";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue