mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 18:59:47 +01:00
neomutt: configurable package (#2294)
This makes it possible to easily use a different (e.g. more recent or patched) neomutt package. Co-authored-by: Michael Adler <therisen06@gmail.com>
This commit is contained in:
parent
9029fd2b9d
commit
2cf19d1d98
1 changed files with 8 additions and 1 deletions
|
@ -231,6 +231,13 @@ in {
|
||||||
programs.neomutt = {
|
programs.neomutt = {
|
||||||
enable = mkEnableOption "the NeoMutt mail client";
|
enable = mkEnableOption "the NeoMutt mail client";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.neomutt;
|
||||||
|
defaultText = literalExample "pkgs.neomutt";
|
||||||
|
description = "The neomutt package to use.";
|
||||||
|
};
|
||||||
|
|
||||||
sidebar = mkOption {
|
sidebar = mkOption {
|
||||||
type = sidebarModule;
|
type = sidebarModule;
|
||||||
default = { };
|
default = { };
|
||||||
|
@ -300,7 +307,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.neomutt ];
|
home.packages = [ cfg.package ];
|
||||||
home.file = let
|
home.file = let
|
||||||
rcFile = account: {
|
rcFile = account: {
|
||||||
"${accountFilename account}".text = accountStr account;
|
"${accountFilename account}".text = accountStr account;
|
||||||
|
|
Loading…
Reference in a new issue