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