summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorDamien Cassou <damien@cassou.me>2015-06-19 14:02:04 +0200
committerDamien Cassou <damien@cassou.me>2015-06-19 14:02:04 +0200
commit90912f8aa5eb0578e73754b9e871670863957c44 (patch)
tree0911465ecb9c36efac10f34af2bb64261c819bb3 /nixos
parent43c93b61ed9d08417b6183c985d1f0868b4ab9f2 (diff)
parent26e424a4aa2c4efdedbd68e119728400c99a017b (diff)
downloadnixlib-90912f8aa5eb0578e73754b9e871670863957c44.tar
nixlib-90912f8aa5eb0578e73754b9e871670863957c44.tar.gz
nixlib-90912f8aa5eb0578e73754b9e871670863957c44.tar.bz2
nixlib-90912f8aa5eb0578e73754b9e871670863957c44.tar.lz
nixlib-90912f8aa5eb0578e73754b9e871670863957c44.tar.xz
nixlib-90912f8aa5eb0578e73754b9e871670863957c44.tar.zst
nixlib-90912f8aa5eb0578e73754b9e871670863957c44.zip
Merge pull request #8401 from DamienCassou/document-desktopManagerHandlesLidAndPower-in-systemd
Explanation to desktopManagerHandlesLidAndPower
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/x11/display-managers/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/display-managers/default.nix b/nixos/modules/services/x11/display-managers/default.nix
index 1fb7f20893d3..736621a14a43 100644
--- a/nixos/modules/services/x11/display-managers/default.nix
+++ b/nixos/modules/services/x11/display-managers/default.nix
@@ -56,7 +56,7 @@ let
         if [ -z "$_INHIBITION_LOCK_TAKEN" ]; then
           export _INHIBITION_LOCK_TAKEN=1
           if ! ${config.systemd.package}/bin/loginctl show-session $XDG_SESSION_ID | grep -q '^RemoteHost='; then
-            exec ${config.systemd.package}/bin/systemd-inhibit --what=handle-lid-switch:handle-power-key "$0" "$sessionType"
+            exec ${config.systemd.package}/bin/systemd-inhibit --what=handle-lid-switch:handle-power-key --why="See NixOS configuration option 'services.xserver.displayManager.desktopManagerHandlesLidAndPower' for more information." "$0" "$sessionType"
           fi
         fi