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:
Michael Adler 2021-08-24 21:34:52 +02:00 committed by GitHub
parent 9029fd2b9d
commit 2cf19d1d98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -231,6 +231,13 @@ in {
programs.neomutt = {
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 {
type = sidebarModule;
default = { };
@ -300,7 +307,7 @@ in {
};
config = mkIf cfg.enable {
home.packages = [ pkgs.neomutt ];
home.packages = [ cfg.package ];
home.file = let
rcFile = account: {
"${accountFilename account}".text = accountStr account;