summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-11-08 13:33:45 +0100
committerAlan Pearce2017-11-08 13:33:45 +0100
commit7cf7ff65a1f3f2c626ffe7495bbef4ac4549abe0 (patch)
treec9bd1b1921dc8fa8ffbc30393570361543d648cb
parent3efd4f870af8fea046a843e23ffba3df67402890 (diff)
downloadnixfiles-7cf7ff65a1f3f2c626ffe7495bbef4ac4549abe0.tar.lz
nixfiles-7cf7ff65a1f3f2c626ffe7495bbef4ac4549abe0.tar.zst
nixfiles-7cf7ff65a1f3f2c626ffe7495bbef4ac4549abe0.zip
window-manager: Add auto-lock after 5 minutes
-rw-r--r--modules/programs/window-manager.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/programs/window-manager.nix b/modules/programs/window-manager.nix
index c1593745..3f584979 100644
--- a/modules/programs/window-manager.nix
+++ b/modules/programs/window-manager.nix
@@ -1,8 +1,15 @@
 { config, pkgs, ... }:
 
-{ services.xserver.displayManager = {
+{ services.xserver = {
+   displayManager = {
     lightdm = {
+        enable = true;
+      };
+    };
+    xautolock = {
       enable = true;
+      locker = "${pkgs.i3lock-color}";
+      time = 5;
     };
   };