Move boot loader timeout to boot.nix

This commit is contained in:
Alexander Bantyev 2021-06-08 20:01:45 +03:00
parent aad29d3f5b
commit d660c231c2
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
2 changed files with 1 additions and 3 deletions

View File

@ -22,8 +22,6 @@
services.apcupsd.enable = true;
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
boot.loader.timeout = 4; # Otherwise it's impossible to change generations
secrets.wireguard-wg0 = { };
persist = {

View File

@ -1,7 +1,7 @@
{ lib, pkgs, config, ... }: {
boot = {
loader = {
timeout = lib.mkForce 1;
timeout = lib.mkForce 4;
grub.enable = lib.mkForce false;
systemd-boot.enable = pkgs.system == "x86_64-linux";
};