Use GNUPGHOME

This commit is contained in:
2024-04-14 01:31:55 +02:00
parent 9278e8c065
commit ba066166fe
2 changed files with 5 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ ConditionPathExists=%h/.var/run/features/gpg_agent
[Service]
Type=forking
ExecStart=/usr/bin/env gpg-agent --homedir %h/.gnupg --no-detach --daemon
PassEnvironment=DISPLAY
ExecStart=/usr/bin/env gpg-agent --no-detach --daemon
PassEnvironment=DISPLAY GNUPGHOME
Restart=always

View File

@@ -42,6 +42,8 @@ export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
export GNUPGHOME="$HOME/.gnupg"
umask 0022
{% set env = machine.environment | combine(user.environment) %}