all repos — nixfiles @ 7cf7ff65a1f3f2c626ffe7495bbef4ac4549abe0

System and user configuration, managed by nix and home-manager

window-manager: Add auto-lock after 5 minutes
Alan Pearce alan@alanpearce.eu
Wed, 08 Nov 2017 13:33:45 +0100
commit

7cf7ff65a1f3f2c626ffe7495bbef4ac4549abe0

parent

3efd4f870af8fea046a843e23ffba3df67402890

1 files changed, 8 insertions(+), 1 deletions(-)

jump to
M modules/programs/window-manager.nixmodules/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;
     };
   };