use getExe everywhere
This commit is contained in:
parent
876a4f09b8
commit
a090dbe73e
7 changed files with 12 additions and 12 deletions
|
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
services.swayidle =
|
||||
let
|
||||
lock-command = "${pkgs.systemd}/bin/loginctl lock-session";
|
||||
lock-command = "${pkgs.lib.getExe' pkgs.systemd "loginctl"} lock-session";
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
|
|
@ -14,11 +14,11 @@
|
|||
}
|
||||
{
|
||||
timeout = 60 * 10;
|
||||
command = "${pkgs.systemd}/bin/systemctl suspend";
|
||||
command = "${pkgs.lib.getExe' pkgs.systemd "systemctl"} suspend";
|
||||
}
|
||||
];
|
||||
events = {
|
||||
before-sleep = "${pkgs.playerctl}/bin/playerctl pause; ${lock-command}";
|
||||
before-sleep = "${pkgs.lib.getExe pkgs.playerctl} pause; ${lock-command}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue