mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 02:39:48 +01:00
aerc: add package option (#4065)
This commit is contained in:
parent
39c7d0a97a
commit
cc6745b35f
1 changed files with 3 additions and 1 deletions
|
@ -25,6 +25,8 @@ in {
|
|||
|
||||
enable = mkEnableOption "aerc";
|
||||
|
||||
package = mkPackageOption pkgs "aerc" { };
|
||||
|
||||
extraAccounts = mkOption {
|
||||
type = sectionsOrLines;
|
||||
default = { };
|
||||
|
@ -133,7 +135,7 @@ in {
|
|||
Consider setting the option `extraConfig.general.unsafe-accounts-conf` to true.
|
||||
''] else
|
||||
[ ];
|
||||
home.packages = [ pkgs.aerc ];
|
||||
home.packages = [ cfg.package ];
|
||||
xdg.configFile = {
|
||||
"aerc/accounts.conf" = mkIf
|
||||
((cfg.extraAccounts != "" && cfg.extraAccounts != { })
|
||||
|
|
Loading…
Reference in a new issue