about summary refs log tree commit diff
path: root/modules/slock.nix
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-12-11 16:34:14 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-12-11 16:34:14 +0100
commit6fbef63080c4a71b3a35057da6af66a4b194cbac (patch)
tree5e37e1143dadbe8383dd3a5bc083c7ec51e6e895 /modules/slock.nix
parent689eec9ddc3d71c1372c1389223358d21310e2b1 (diff)
parentd4696cbf3476a473421b536a1d4cb63a5ce48eef (diff)
downloaddots-6fbef63080c4a71b3a35057da6af66a4b194cbac.tar.gz
dots-6fbef63080c4a71b3a35057da6af66a4b194cbac.zip
Merge remote-tracking branch 'origin/master' into multi-machine
Diffstat (limited to 'modules/slock.nix')
-rw-r--r--modules/slock.nix18
1 files changed, 11 insertions, 7 deletions
diff --git a/modules/slock.nix b/modules/slock.nix
index 85c78de..d98e898 100644
--- a/modules/slock.nix
+++ b/modules/slock.nix
@@ -17,13 +17,17 @@ let
 in {
   environment.systemPackages = [ slock ];
   security.wrappers.slock.source = "${slock.out}/bin/slock";
-  services.xserver.xautolock = {
+  # services.xserver.xautolock = {
+  #   enable = true;
+  #   locker = "${config.security.wrapperDir}/slock";
+  #   enableNotifier = true;
+  #   notifier = "${pkgs.libnotify}/bin/notify-send \"Locking in 10 seconds\"";
+  #   killer = "/run/current-system/systemd/bin/systemctl suspend-then-hibernate";
+  #   killtime = 30;
+  #   extraOptions = [ "-detectsleep" ];
+  # };
+  programs.xss-lock = {
     enable = true;
-    locker = "${config.security.wrapperDir}/slock";
-    enableNotifier = true;
-    notifier = "${pkgs.libnotify}/bin/notify-send \"Locking in 10 seconds\"";
-    killer = "/run/current-system/systemd/bin/systemctl suspend-then-hibernate";
-    killtime = 30;
-    extraOptions = [ "-detectsleep" ];
+    lockerCommand = "${config.security.wrapperDir}/slock";
   };
 }