mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Desktop/General] better control early Systemd boot level + fix console setup
and don't disable console completely: this caused issues like not setting up keyboard layout correctly, for instance.
This commit is contained in:
parent
05a54f03b5
commit
506bd4e1f0
1 changed files with 3 additions and 2 deletions
|
|
@ -78,14 +78,15 @@ in {
|
|||
preempt = "full";
|
||||
"usbhid.mousepoll" = 1; # 1ms latency for mouse
|
||||
"usbhid.kbpoll" = 4; # 4ms latency for kb
|
||||
"systemd.log_level" = config.boot.initrd.systemd.managerEnvironment.SYSTEMD_LOG_LEVEL;
|
||||
};
|
||||
boot.initrd.verbose = generalCfg.debug;
|
||||
boot.consoleLogLevel = mkIf (!generalCfg.debug) 1;
|
||||
boot.initrd.systemd.managerEnvironment = {
|
||||
SYSTEMD_LOG_LEVEL = toString config.boot.consoleLogLevel;
|
||||
SYSTEMD_LOG_LEVEL = if generalCfg.debug then toString config.boot.consoleLogLevel else "crit";
|
||||
};
|
||||
|
||||
console.enable = mkDefault false; # Completly disable console by default
|
||||
#console.enable = mkDefault false; # Completly disable console by default
|
||||
security.polkit.enable = true; # Better interactive privilege prompts
|
||||
|
||||
# Enable running X11 apps on Wayland
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue