about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@tvl.su>2024-09-01T22·11+0300
committerclbot <clbot@tvl.fyi>2024-09-05T11·58+0000
commit200d49a0e1ee19b66f22347888b15ed63da60bcb (patch)
treef6b03e12f85a3d460bc807abc7c2f41a08ef6373 /users
parent32cc8016df354ea790c7605449b6838c37eb2602 (diff)
feat(tazjin/home): configure screen locking with swayidle r/8652
Change-Id: I73e42071710f481c0f1acf965e18446c18e7c94b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12430
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'users')
-rw-r--r--users/tazjin/home/shared.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/users/tazjin/home/shared.nix b/users/tazjin/home/shared.nix
index 9d5fbb266078..c80a10945fa3 100644
--- a/users/tazjin/home/shared.nix
+++ b/users/tazjin/home/shared.nix
@@ -72,6 +72,14 @@ in
     };
   };
 
+  services.swayidle = let cmd = "${pkgs.swaylock}/bin/swaylock -fFkl -c 008080"; in {
+    enable = true;
+    events = [
+      { event = "before-sleep"; command = cmd; }
+      { event = "lock"; command = cmd; }
+    ];
+  };
+
   # Enable the dunst notification daemon, but force the
   # configuration file separately instead of going via the strange
   # Nix->dunstrc encoding route.