patches: Add patch to fix script location in dovecot
This commit is contained in:
parent
4f8a99fba0
commit
7c5260de2f
1 changed files with 25 additions and 0 deletions
25
patches/284749.patch
Normal file
25
patches/284749.patch
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
diff --git a/nixos/modules/services/mail/dovecot.nix b/nixos/modules/services/mail/dovecot.nix
|
||||||
|
index 8d298de6945bbc..3d3489164ac2f0 100644
|
||||||
|
--- a/nixos/modules/services/mail/dovecot.nix
|
||||||
|
+++ b/nixos/modules/services/mail/dovecot.nix
|
||||||
|
@@ -1,8 +1,8 @@
|
||||||
|
-{ options, config, lib, pkgs, ... }:
|
||||||
|
+{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
- inherit (lib) any attrValues concatMapStringsSep concatStrings
|
||||||
|
- concatStringsSep flatten imap1 isList literalExpression mapAttrsToList
|
||||||
|
+ inherit (lib) attrValues concatMapStringsSep concatStrings
|
||||||
|
+ concatStringsSep flatten imap1 literalExpression mapAttrsToList
|
||||||
|
mkEnableOption mkIf mkOption mkRemovedOptionModule optional optionalAttrs
|
||||||
|
optionalString singleton types mkRenamedOptionModule nameValuePair
|
||||||
|
mapAttrs' listToAttrs filter;
|
||||||
|
@@ -14,7 +14,7 @@ let
|
||||||
|
baseDir = "/run/dovecot2";
|
||||||
|
stateDir = "/var/lib/dovecot";
|
||||||
|
|
||||||
|
- sieveScriptSettings = mapAttrs' (to: from: nameValuePair "sieve_${to}" "${stateDir}/sieve/${from}") cfg.sieve.scripts;
|
||||||
|
+ sieveScriptSettings = mapAttrs' (to: from: nameValuePair "sieve_${to}" "${stateDir}/sieve/${to}") cfg.sieve.scripts;
|
||||||
|
imapSieveMailboxSettings = listToAttrs (flatten (imap1 (idx: el:
|
||||||
|
singleton {
|
||||||
|
name = "imapsieve_mailbox${toString idx}_name";
|
Loading…
Add table
Add a link
Reference in a new issue