use getExe everywhere

This commit is contained in:
müde 2026-09-11 23:04:00 +02:00
commit a090dbe73e
7 changed files with 12 additions and 12 deletions

View file

@ -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}";
};
};
}