From fc3f594206d6705fd8fc61dff9ce46e2993649b2 Mon Sep 17 00:00:00 2001 From: Odweta Date: Sun, 11 Jan 2026 21:15:00 +0100 Subject: [PATCH] lock --- lock-suspend.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lock-suspend.nix b/lock-suspend.nix index 504ffec..56ec9ce 100644 --- a/lock-suspend.nix +++ b/lock-suspend.nix @@ -13,13 +13,12 @@ timeout = 0 ''; }; - systemd.services.hyprlock-pre-suspend = { + systemd.user.services.hyprlock-pre-suspend = { description = "Lock screen before suspend"; wants = [ "sleep.target" ]; before = [ "sleep.target" ]; serviceConfig = { Type = "oneshot"; - User = "odweta"; # run as your user Environment = "XDG_RUNTIME_DIR=/run/user/%U WAYLAND_DISPLAY=wayland-1 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/bus"; ExecStart = "${pkgs.hyprlock}/bin/hyprlock -c /etc/hypr/hyprlock.conf"; };