[Boot+Refactoring] Add a cmdline config option for cleaner boot option config

This commit is contained in:
Antoine Viallon 2022-04-07 09:22:44 +02:00
parent 8457628ee6
commit 7e26d25066
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
6 changed files with 43 additions and 22 deletions

View file

@ -70,10 +70,11 @@ in {
boot.plymouth.enable = mkDefault true;
boot.kernelParams = concatLists [
(optionals (!generalCfg.debug) [ "splash" "udev.log_level=3" ])
["preempt=full"]
];
aviallon.boot.cmdline = {
splash = mkIf (!generalCfg.debug) true;
"udev.log_level" = mkIf (!generalCfg.debug) 3;
preempt = "full";
};
boot.initrd.verbose = generalCfg.debug;
boot.consoleLogLevel = mkIf (!generalCfg.debug) 1;