feat(xdg): .gnupg -> .config/gnupg

This commit is contained in:
winston 2023-11-11 17:26:16 +01:00
parent ecf309daf4
commit 32e5584012
Signed by: winston
GPG key ID: 3786770EDBC2B481

View file

@ -5,7 +5,7 @@
pkgs, pkgs,
... ...
}: let }: let
inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux; inherit (pkgs.stdenv.hostPlatform) isLinux;
inherit (config.xdg) cacheHome configHome dataHome; inherit (config.xdg) cacheHome configHome dataHome;
inherit (config.home) homeDirectory; inherit (config.home) homeDirectory;
in { in {
@ -36,11 +36,7 @@ in {
]; ];
}; };
# NOTE: workaround for gpgme on Darwin, since GUI apps aren't aware of $GNUPGHOME programs.gpg.homedir = "${configHome}/gnupg";
programs.gpg.homedir =
if isDarwin
then "${homeDirectory}/.gnupg"
else "${configHome}/gnupg";
xdg = { xdg = {
enable = true; enable = true;