fix(gpg): don't use a symlink, change dir on darwin
This commit is contained in:
parent
2ebda844f2
commit
fd09498990
1 changed files with 5 additions and 9 deletions
|
@ -36,17 +36,13 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
#NOTE: yet another workaround for gpgme on Darwin, since Firefox isn't aware of $GNUPGHOME
|
||||
home.activation = lib.mkIf isDarwin {
|
||||
linkGnupgHome = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
$DRY_RUN_CMD ln -s $VERBOSE_ARG \
|
||||
${config.programs.gpg.homedir} ${config.home.homeDirectory}/.gnupg
|
||||
'';
|
||||
};
|
||||
|
||||
programs.gpg = {
|
||||
enable = true;
|
||||
homedir = "${config.xdg.configHome}/gnupg";
|
||||
#NOTE: yet another workaround for gpgme on Darwin, since Firefox isn't aware of $GNUPGHOME
|
||||
homedir =
|
||||
if isDarwin
|
||||
then "${config.home.homeDirectory}/.gnupg"
|
||||
else "${config.xdg.configHome}/gnupg";
|
||||
scdaemonSettings."disable-ccid" = true;
|
||||
settings = {
|
||||
# https://github.com/drduh/config/blob/master/gpg.conf
|
||||
|
|
Loading…
Reference in a new issue