mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Desktop+General] Add debug config flag in order to have more verbose boots
(for instance) Signed-off-by: Antoine Viallon <antoine@lesviallon.fr>
This commit is contained in:
parent
67a7159f86
commit
21747d37a7
2 changed files with 8 additions and 3 deletions
10
desktop.nix
10
desktop.nix
|
|
@ -2,6 +2,7 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.aviallon.desktop;
|
||||
generalCfg = config.aviallon.general;
|
||||
filterConfig = pkgs.writeText "pipewire-noise-filter.cfg" ''
|
||||
# Noise canceling source
|
||||
#
|
||||
|
|
@ -136,9 +137,12 @@ in {
|
|||
};
|
||||
|
||||
boot.plymouth.enable = mkDefault true;
|
||||
boot.kernelParams = [ "splash" "udev.log_level=3" ];
|
||||
boot.initrd.verbose = false;
|
||||
# boot.consoleLogLevel = 1;
|
||||
boot.kernelParams = concatLists [
|
||||
(optionals (!generalCfg.debug) [ "splash" "udev.log_level=3" ])
|
||||
["preempt=full"]
|
||||
];
|
||||
boot.initrd.verbose = generalCfg.debug;
|
||||
boot.consoleLogLevel = mkIf (!generalCfg.debug) 1;
|
||||
|
||||
# Enable sound.
|
||||
sound.enable = false;
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ in
|
|||
};
|
||||
unsafeOptimizations = mkEnableOption "unsafe system tuning";
|
||||
flakes.enable = mkEnableOption "experimental flake support";
|
||||
debug = mkEnableOption "debug-specific configuration";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue