about summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-07-24 22:06:20 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-07-24 22:06:20 +0200
commita6525f37bc56d32472359628304a3430ae1e1071 (patch)
tree588d88f5ba68bfb2f627b681d52f52af24430261 /hosts
parentSet XDG env variables (diff)
downloadnixos-config-a6525f37bc56d32472359628304a3430ae1e1071.tar.gz
nixos-config-a6525f37bc56d32472359628304a3430ae1e1071.tar.bz2
nixos-config-a6525f37bc56d32472359628304a3430ae1e1071.zip
Add screen locker
Diffstat (limited to 'hosts')
-rw-r--r--hosts/home.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/hosts/home.nix b/hosts/home.nix
index d39f3ac..34a8b34 100644
--- a/hosts/home.nix
+++ b/hosts/home.nix
@@ -29,6 +29,7 @@ in
       nixpkgs-fmt
       virt-manager
       xdotool #needed for xmobar clickable workspaces
+      xlockmore
     ] ++
     (with pkgs.custom; [
       smart-wallpaper
@@ -68,6 +69,12 @@ in
       enable = true;
       startWithUserSession = true;
     };
+
+    screen-locker = {
+      enable = true;
+      lockCmd = "${pkgs.xlockmore}/bin/xlock -mode blank";
+      xautolock.enable = false;
+    };
   };
 
   programs = {