about summary refs log tree commit diff
diff options
context:
space:
mode:
-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.