mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
aerc: fix config paths on darwin
When xdg.enable is set, aerc uses the $XDG_CONFIG_HOME variable instead of the default $HOME/Library/Preferences. home-manager needs to check this to make sure aerc can find the proper file in both cases.
This commit is contained in:
parent
09587fbbc6
commit
1369d2cefb
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ let
|
||||||
aerc-accounts =
|
aerc-accounts =
|
||||||
attrsets.filterAttrs (_: v: v.aerc.enable) config.accounts.email.accounts;
|
attrsets.filterAttrs (_: v: v.aerc.enable) config.accounts.email.accounts;
|
||||||
|
|
||||||
configDir = if pkgs.stdenv.isDarwin then
|
configDir = if (pkgs.stdenv.isDarwin && !config.xdg.enable) then
|
||||||
"Library/Preferences/aerc"
|
"Library/Preferences/aerc"
|
||||||
else
|
else
|
||||||
"${config.xdg.configHome}/aerc";
|
"${config.xdg.configHome}/aerc";
|
||||||
|
|
|
@ -5,7 +5,7 @@ with lib;
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
nmt.script = let
|
nmt.script = let
|
||||||
dir = if pkgs.stdenv.isDarwin then
|
dir = if (pkgs.stdenv.isDarwin && !config.xdg.enable) then
|
||||||
"home-files/Library/Preferences/aerc"
|
"home-files/Library/Preferences/aerc"
|
||||||
else
|
else
|
||||||
"home-files/.config/aerc";
|
"home-files/.config/aerc";
|
||||||
|
|
Loading…
Reference in a new issue