diff --git a/modules/workstation.nix b/modules/workstation.nix index d6fa4a0..0449066 100644 --- a/modules/workstation.nix +++ b/modules/workstation.nix @@ -20,6 +20,12 @@ in { default = false; description = "If this device has a battery"; }; + + fancyBoot = mkOption { + type = types.bool; + default = true; + description = "If to use a prettier booting process"; + }; }; config = mkIf cfg.enable { @@ -31,10 +37,10 @@ in { }; boot = { - consoleLogLevel = lib.mkDefault 0; - initrd.verbose = lib.mkDefault false; - plymouth.enable = lib.mkDefault true; - kernelParams = [ + consoleLogLevel = lib.mkDefault cfg.fancyBoot; + initrd.verbose = lib.mkDefault (!cfg.fancyBoot); + plymouth.enable = lib.mkDefault cfg.fancyBoot; + kernelParams = lib.mkIf cfg.fancyBoot [ "quiet" "loglevel=3" "rd.systemd.show_status=no" @@ -43,7 +49,7 @@ in { "vt.global_cursor_default=0" ]; - loader.timeout = 0; + loader.timeout = lib.mkIf cfg.fancyBoot 0; kernel.sysctl = { # lol anti-cheat