From b14365e7b3a3998a9a72e4ce6def6c1011508688 Mon Sep 17 00:00:00 2001 From: Odweta Date: Sun, 11 Jan 2026 20:49:47 +0100 Subject: [PATCH] lock --- lock-suspend.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lock-suspend.nix b/lock-suspend.nix index 01a4ff3..291e4e9 100644 --- a/lock-suspend.nix +++ b/lock-suspend.nix @@ -5,6 +5,15 @@ settings.Login.HandleLidSwitch = "suspend"; # suspend on lid close }; + # Add the config declaratively + environment.etc."hyprlock/config" = { + source = pkgs.writeText "hyprlock-config" '' + # hyprlock configuration + blur = 5 + timeout = 0 + ''; + }; + systemd.services.hyprlock-pre-suspend = { description = "Lock screen before suspend"; serviceConfig = {