1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

aerc: add package option (#4065)

This commit is contained in:
Jany 2023-06-07 20:15:15 +00:00 committed by GitHub
parent 39c7d0a97a
commit cc6745b35f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,8 @@ in {
enable = mkEnableOption "aerc"; enable = mkEnableOption "aerc";
package = mkPackageOption pkgs "aerc" { };
extraAccounts = mkOption { extraAccounts = mkOption {
type = sectionsOrLines; type = sectionsOrLines;
default = { }; default = { };
@ -133,7 +135,7 @@ in {
Consider setting the option `extraConfig.general.unsafe-accounts-conf` to true. Consider setting the option `extraConfig.general.unsafe-accounts-conf` to true.
''] else ''] else
[ ]; [ ];
home.packages = [ pkgs.aerc ]; home.packages = [ cfg.package ];
xdg.configFile = { xdg.configFile = {
"aerc/accounts.conf" = mkIf "aerc/accounts.conf" = mkIf
((cfg.extraAccounts != "" && cfg.extraAccounts != { }) ((cfg.extraAccounts != "" && cfg.extraAccounts != { })