From 7cf7ff65a1f3f2c626ffe7495bbef4ac4549abe0 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 8 Nov 2017 13:33:45 +0100 Subject: window-manager: Add auto-lock after 5 minutes --- modules/programs/window-manager.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules/programs') 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; }; }; -- cgit 1.4.1