Default systemd-boot console mode to auto
This commit is contained in:
parent
44ce54628e
commit
874f06b331
|
|
@ -1,9 +1,13 @@
|
|||
{
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
boot = {
|
||||
loader.systemd-boot.enable = true;
|
||||
loader.systemd-boot = {
|
||||
enable = true;
|
||||
consoleMode = config.system.systemdBootConsoleMode;
|
||||
};
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,5 +19,11 @@ with lib;
|
|||
type = types.str;
|
||||
default = "US/Eastern";
|
||||
};
|
||||
|
||||
systemdBootConsoleMode = mkOption {
|
||||
type = types.str;
|
||||
default = "auto";
|
||||
description = "The console mode when booting";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue