mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Boot] reduce boot verbosity from systemd (define sensible values based on boot.consoleLogLevel)
This commit is contained in:
parent
f32037933f
commit
bb08c18f92
1 changed files with 15 additions and 0 deletions
15
boot.nix
15
boot.nix
|
|
@ -231,6 +231,21 @@ in {
|
||||||
# https://www.kernel.org/doc/html/v5.15/admin-guide/kernel-parameters.html
|
# https://www.kernel.org/doc/html/v5.15/admin-guide/kernel-parameters.html
|
||||||
"lpj" = mkIf (cfg.loops_per_jiffies > 0) cfg.loops_per_jiffies;
|
"lpj" = mkIf (cfg.loops_per_jiffies > 0) cfg.loops_per_jiffies;
|
||||||
|
|
||||||
|
|
||||||
|
# From systemd(1): systemd.show_status
|
||||||
|
# Takes a boolean argument or the constants error and auto. Can be also specified without an argument, with the same effect as a positive boolean. If enabled, the systemd manager (PID 1) shows
|
||||||
|
# terse service status updates on the console during bootup. With error, only messages about failures are shown, but boot is otherwise quiet. auto behaves like false until there is a significant
|
||||||
|
# delay in boot. Defaults to enabled, unless quiet is passed as kernel command line option, in which case it defaults to error.
|
||||||
|
"systemd.show_status" =
|
||||||
|
if config.boot.consoleLogLevel <= 1 then
|
||||||
|
"no"
|
||||||
|
else if config.boot.consoleLogLevel < 4 then
|
||||||
|
"error"
|
||||||
|
else if config.boot.consoleLogLevel == 4 then
|
||||||
|
"auto"
|
||||||
|
else
|
||||||
|
"yes"
|
||||||
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.overlays = [(final: prev: {
|
nixpkgs.overlays = [(final: prev: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue