mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
accounts.email: add option to disable an account
Allow a user to disable an email account by setting `accounts.email.accounts.<name>.enable = false`. This is useful if someone wants to configure email accounts globally but only use them in certain circumstances. Everywhere email account configuration is used, check if the account is enabled before checking any attributes of the account.
This commit is contained in:
committed by
Austin Horstman
parent
07b994baed
commit
dbfcd3292d
@@ -47,7 +47,9 @@ let
|
||||
;
|
||||
};
|
||||
|
||||
aerc-accounts = attrsets.filterAttrs (_: v: v.aerc.enable) config.accounts.email.accounts;
|
||||
aerc-accounts = attrsets.filterAttrs (
|
||||
_: v: v.enable && v.aerc.enable
|
||||
) config.accounts.email.accounts;
|
||||
|
||||
configDir =
|
||||
if (pkgs.stdenv.isDarwin && !config.xdg.enable) then
|
||||
|
||||
Reference in New Issue
Block a user