desktopManagerHandlesLidAndPower default
false`
Changes the option and explicitely sets it for each desktopManager. Reasoning: Currently, services.xserver.displayManager.desktopManagerHandlesLidAndPower is set to true by default. This creates a problem for users without desktop environments activated, since lid management simply doesn't work (and they have to be lucky to find this option). See issue #9671
This commit is contained in:
parent
ea7b5bb8b0
commit
44c12dc0ff
1
nixos/modules/services/x11/desktop-managers/README
Normal file
1
nixos/modules/services/x11/desktop-managers/README
Normal file
|
@ -0,0 +1 @@
|
|||
Each desktop manager should explicitly specify a value for `services.xserver.displayManager.desktopManagerHandlesLidAndPower`.
|
|
@ -62,6 +62,7 @@ in
|
|||
waitPID=$!
|
||||
'';
|
||||
}];
|
||||
services.xserver.displayManager.desktopManagerHandlesLidAndPower = true;
|
||||
|
||||
security.setuidPrograms = [ "e19_freqset" ];
|
||||
|
||||
|
|
|
@ -111,6 +111,7 @@ in
|
|||
exec ${kde_workspace}/bin/startkde
|
||||
'';
|
||||
};
|
||||
services.xserver.displayManager.desktopManagerHandlesLidAndPower = true;
|
||||
|
||||
security.setuidOwners = singleton
|
||||
{ program = "kcheckpass";
|
||||
|
|
|
@ -78,6 +78,7 @@ in
|
|||
bgSupport = true;
|
||||
start = ''exec ${plasma5.plasma-workspace}/bin/startkde;'';
|
||||
};
|
||||
services.xserver.displayManager.desktopManagerHandlesLidAndPower = true;
|
||||
|
||||
security.setuidOwners = singleton {
|
||||
program = "kcheckpass";
|
||||
|
|
|
@ -25,7 +25,8 @@ in
|
|||
waitPID=$!
|
||||
'';
|
||||
}];
|
||||
services.xserver.displayManager.desktopManagerHandlesLidAndPower = true;
|
||||
|
||||
environment.systemPackages = [ pkgs.kodi ];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ in
|
|||
exec ${pkgs.stdenv.shell} ${pkgs.xfce.xinitrc}
|
||||
'';
|
||||
};
|
||||
services.xserver.displayManager.desktopManagerHandlesLidAndPower = true;
|
||||
|
||||
environment.systemPackages =
|
||||
[ pkgs.gtk # To get GTK+'s themes.
|
||||
|
|
|
@ -229,7 +229,7 @@ in
|
|||
|
||||
desktopManagerHandlesLidAndPower = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
default = false;
|
||||
description = ''
|
||||
Whether the display manager should prevent systemd from handling
|
||||
lid and power events. This is normally handled by the desktop
|
||||
|
|
Loading…
Reference in a new issue