mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 17:53:14 +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.
|
||||
if [ -z "$_INHIBITION_LOCK_TAKEN" ]; then
|
||||
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
|
||||
|
||||
${optionalString cfg.startOpenSSHAgent ''
|
||||
|
Loading…
Reference in New Issue
Block a user