aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-12-05 23:00:42 +0530
committerAkshay Nair <phenax5@gmail.com>2025-12-14 22:06:38 +0530
commit07f13ef6e86d72c48ba760ba353e17d441881160 (patch)
tree63fc3ed1856920f3eaf682d5fa80a7eba3435945 /modules
parente8252676414aa387a337282e4af7c49d465d3936 (diff)
downloadnixos-config-07f13ef6e86d72c48ba760ba353e17d441881160.tar.gz
nixos-config-07f13ef6e86d72c48ba760ba353e17d441881160.zip
Cleanup
Diffstat (limited to 'modules')
-rw-r--r--modules/lockscreen.nix9
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;
};