summary refs log tree commit diff stats
path: root/modules/programs
diff options
context:
space:
mode:
authorAlan Pearce2017-11-08 13:33:45 +0100
committerAlan Pearce2017-11-08 13:33:45 +0100
commit7cf7ff65a1f3f2c626ffe7495bbef4ac4549abe0 (patch)
treec9bd1b1921dc8fa8ffbc30393570361543d648cb /modules/programs
parent3efd4f870af8fea046a843e23ffba3df67402890 (diff)
downloadnixos-configuration-7cf7ff65a1f3f2c626ffe7495bbef4ac4549abe0.tar.lz
nixos-configuration-7cf7ff65a1f3f2c626ffe7495bbef4ac4549abe0.tar.zst
nixos-configuration-7cf7ff65a1f3f2c626ffe7495bbef4ac4549abe0.zip
window-manager: Add auto-lock after 5 minutes
Diffstat (limited to 'modules/programs')
-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 c159374..3f58497 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;
     };
   };