Util: Remove old trimTabs usages.
This commit is contained in:
parent
3bafe0d813
commit
039de66c06
|
@ -120,7 +120,7 @@ in
|
||||||
ru
|
ru
|
||||||
];
|
];
|
||||||
plugins = [ "managesieve" ];
|
plugins = [ "managesieve" ];
|
||||||
extraConfig = util.trimTabs ''
|
extraConfig = ''
|
||||||
$config['smtp_server'] = "localhost:25";
|
$config['smtp_server'] = "localhost:25";
|
||||||
$config['smtp_auth_type'] = null;
|
$config['smtp_auth_type'] = null;
|
||||||
$config['smtp_user'] = "";
|
$config['smtp_user'] = "";
|
||||||
|
@ -138,7 +138,7 @@ in
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
};
|
};
|
||||||
path = [ pkgs.dovecot ];
|
path = [ pkgs.dovecot ];
|
||||||
script = util.trimTabs ''
|
script = ''
|
||||||
doveadm expunge -A mailbox Junk SENTBEFORE 7d
|
doveadm expunge -A mailbox Junk SENTBEFORE 7d
|
||||||
doveadm expunge -A mailbox Trash SENTBEFORE 30d
|
doveadm expunge -A mailbox Trash SENTBEFORE 30d
|
||||||
doveadm expunge -u trash@voronind.com mailbox Inbox SENTBEFORE 30d
|
doveadm expunge -u trash@voronind.com mailbox Inbox SENTBEFORE 30d
|
||||||
|
|
|
@ -143,7 +143,7 @@ in
|
||||||
networkmanager.enable = lib.mkForce false;
|
networkmanager.enable = lib.mkForce false;
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraCommands = util.trimTabs ''
|
extraCommands = ''
|
||||||
# Wan access for 10.0.0.0/24 subnet.
|
# Wan access for 10.0.0.0/24 subnet.
|
||||||
iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -d 0/0 -o ${wan} -j MASQUERADE
|
iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -d 0/0 -o ${wan} -j MASQUERADE
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue