diff --git a/modules/programs/aerc.nix b/modules/programs/aerc.nix index 0bfaa8f4..7a48d91a 100644 --- a/modules/programs/aerc.nix +++ b/modules/programs/aerc.nix @@ -24,7 +24,7 @@ let aerc-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" else "${config.xdg.configHome}/aerc"; diff --git a/tests/modules/programs/aerc/settings.nix b/tests/modules/programs/aerc/settings.nix index aa89cc4a..523b2564 100644 --- a/tests/modules/programs/aerc/settings.nix +++ b/tests/modules/programs/aerc/settings.nix @@ -5,7 +5,7 @@ with lib; { config = { nmt.script = let - dir = if pkgs.stdenv.isDarwin then + dir = if (pkgs.stdenv.isDarwin && !config.xdg.enable) then "home-files/Library/Preferences/aerc" else "home-files/.config/aerc";