diff --git a/scripts/_gpg-unlock.nix b/scripts/_gpg-unlock.nix index d5bea9d..ddec965 100644 --- a/scripts/_gpg-unlock.nix +++ b/scripts/_gpg-unlock.nix @@ -2,7 +2,7 @@ pkgs.writeShellScriptBin "_gpg-unlock" '' ${pkgs.gnupg}/bin/gpg-connect-agent reloadagent /bye - set -xe + set -e test -f "$HOME/.config/.preset-password" || { notify-send "No preset password found" diff --git a/user/gpg.nix b/user/gpg.nix index 8ca0613..e215440 100644 --- a/user/gpg.nix +++ b/user/gpg.nix @@ -28,9 +28,10 @@ }; Timer = { OnBootSec = "0"; - OnUnitActiveSec = "30"; + OnUnitActiveSec = "300"; Unit = "gpg_unlock.service"; }; + Install = { WantedBy = [ "sway-session.target" ]; }; }; };