mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
msmtp: add configurable package
This commit is contained in:
parent
b3c4e98aec
commit
01a66e313f
1 changed files with 8 additions and 1 deletions
|
@ -51,6 +51,13 @@ in {
|
||||||
programs.msmtp = {
|
programs.msmtp = {
|
||||||
enable = mkEnableOption "msmtp";
|
enable = mkEnableOption "msmtp";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.msmtp;
|
||||||
|
defaultText = literalExpression "pkgs.msmtp";
|
||||||
|
description = "The msmtp package to use.";
|
||||||
|
};
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
|
@ -81,7 +88,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.msmtp ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
xdg.configFile."msmtp/config".text = configFile msmtpAccounts;
|
xdg.configFile."msmtp/config".text = configFile msmtpAccounts;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue