diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-12-05 23:00:42 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-12-14 22:06:38 +0530 |
| commit | 07f13ef6e86d72c48ba760ba353e17d441881160 (patch) | |
| tree | 63fc3ed1856920f3eaf682d5fa80a7eba3435945 /modules/lockscreen.nix | |
| parent | e8252676414aa387a337282e4af7c49d465d3936 (diff) | |
| download | nixos-config-07f13ef6e86d72c48ba760ba353e17d441881160.tar.gz nixos-config-07f13ef6e86d72c48ba760ba353e17d441881160.zip | |
Cleanup
Diffstat (limited to '')
| -rw-r--r-- | modules/lockscreen.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/lockscreen.nix b/modules/lockscreen.nix index 09c6727..386f08a 100644 --- a/modules/lockscreen.nix +++ b/modules/lockscreen.nix @@ -1,16 +1,17 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: let localPkgs = import ../packages/default.nix { inherit pkgs; }; in { environment.systemPackages = [ localPkgs.bslock ]; + # TODO: Clear gpg pass cache on autolock `gpg-connect-agent reloadagent /bye` services.xserver.xautolock = { enable = true; - time = 30; # minutes - locker = "${localPkgs.bslock}/bin/bslock"; + time = 45; # minutes + locker = "/run/wrappers/bin/bslock"; # Bslock with security wrapper enableNotifier = true; notify = 30; - notifier = "${pkgs.libnotify}/bin/notify-send 'Locking in 30 seconds'"; + notifier = ''${pkgs.libnotify}/bin/notify-send "Locking in 30 seconds"''; killer = null; }; |
