From 07f13ef6e86d72c48ba760ba353e17d441881160 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 5 Dec 2025 23:00:42 +0530 Subject: Cleanup --- modules/lockscreen.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modules') 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; }; -- cgit v1.3.1