From cc6745b35fefe48624ebf573382e1e0e4a6fe85e Mon Sep 17 00:00:00 2001 From: Jany <127505435+janydoe@users.noreply.github.com> Date: Wed, 7 Jun 2023 20:15:15 +0000 Subject: [PATCH] aerc: add package option (#4065) --- modules/programs/aerc.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/programs/aerc.nix b/modules/programs/aerc.nix index ad44bf906..95ca984f3 100644 --- a/modules/programs/aerc.nix +++ b/modules/programs/aerc.nix @@ -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 != { })