Skip to content

Commit

Permalink
fix(home/swayidle): exe paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichthagel committed Jul 3, 2024
1 parent 6172f92 commit eacd342
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions home/graphical/swayidle.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{ config, lib, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.services.swayidle.licht;

getSwayExe = lib.getExe' config.wayland.windowManager.sway.package;
swaymsg = getSwayExe "swaymsg";
swaylock = getSwayExe "swaylock";
swaymsg = lib.getExe' config.wayland.windowManager.sway.package "swaymsg";
swaylock = lib.getExe pkgs.swaylock;
systemctl = lib.getExe' pkgs.systemd "systemctl";
in
{
options.services.swayidle.licht = {
Expand Down Expand Up @@ -74,7 +79,7 @@ in
}
{
timeout = cfg.suspend.timeout;
command = "systemctl suspend";
command = "${systemctl} suspend";
}
];
};
Expand Down

0 comments on commit eacd342

Please sign in to comment.