diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-12-11 16:31:26 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-12-11 16:31:26 +0100 |
commit | d4696cbf3476a473421b536a1d4cb63a5ce48eef (patch) | |
tree | ddfb029bfe6f9a6b8fc9cd3e3c6c3e2015d3771d /modules/slock.nix | |
parent | bb668c1bdfb2937e2ca987426aac6cfe1b544fc9 (diff) | |
download | dots-d4696cbf3476a473421b536a1d4cb63a5ce48eef.tar.gz dots-d4696cbf3476a473421b536a1d4cb63a5ce48eef.zip |
Update slock
Diffstat (limited to 'modules/slock.nix')
-rw-r--r-- | modules/slock.nix | 18 |
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"; }; } |