mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-02 02:03:21 +00:00
Oops, systemd-inhibit should be exec'ed
This commit is contained in:
parent
52483c36bb
commit
7d26dde69a
@ -35,7 +35,7 @@ let
|
|||||||
# since presumably the desktop environment will handle these.
|
# since presumably the desktop environment will handle these.
|
||||||
if [ -z "$_INHIBITION_LOCK_TAKEN" ]; then
|
if [ -z "$_INHIBITION_LOCK_TAKEN" ]; then
|
||||||
export _INHIBITION_LOCK_TAKEN=1
|
export _INHIBITION_LOCK_TAKEN=1
|
||||||
${config.system.build.systemd}/bin/systemd-inhibit --what=handle-lid-switch:handle-power-key "$0" "$sessionType"
|
exec ${config.system.build.systemd}/bin/systemd-inhibit --what=handle-lid-switch:handle-power-key "$0" "$sessionType"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${optionalString cfg.startOpenSSHAgent ''
|
${optionalString cfg.startOpenSSHAgent ''
|
||||||
|
Loading…
Reference in New Issue
Block a user