about summary refs log tree commit diff
path: root/hosts/home.nix
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2022-07-24 22:06:20 +0200
committerBaitinq <[email protected]>2022-07-24 22:06:20 +0200
commit2d6dad5ff99e04b7b9f8cd342623f40c307d85a8 (patch)
treeed7c8d2ba77ab3217743bfb9651d371f7867d35e /hosts/home.nix
parentSet XDG env variables (diff)
downloadnixos-config-2d6dad5ff99e04b7b9f8cd342623f40c307d85a8.tar.gz
nixos-config-2d6dad5ff99e04b7b9f8cd342623f40c307d85a8.tar.bz2
nixos-config-2d6dad5ff99e04b7b9f8cd342623f40c307d85a8.zip
Add screen locker
Diffstat (limited to 'hosts/home.nix')
-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 = {