diff --git a/lock-suspend.nix b/lock-suspend.nix index 3e4d970..52bf625 100644 --- a/lock-suspend.nix +++ b/lock-suspend.nix @@ -20,6 +20,7 @@ serviceConfig = { Type = "oneshot"; User = "odweta"; # run as your user + Environment = "XDG_RUNTIME_DIR=/run/user/1000"; ExecStart = "${pkgs.hyprlock}/bin/hyprlock -c /etc/hypr/hyprlock.conf"; }; wantedBy = [ "sleep.target" ];