diff --git a/lock-suspend.nix b/lock-suspend.nix index 3e1c606..8fbdc19 100644 --- a/lock-suspend.nix +++ b/lock-suspend.nix @@ -18,7 +18,7 @@ description = "Lock screen before suspend"; serviceConfig = { Type = "oneshot"; - ExecStart = "/run/current-system/sw/bin/hyprlock"; + ExecStart = "${pkgs.hyprlock}/bin/hyprlock"; }; wantedBy = [ "sleep.target" ]; };