Util: Remove old trimTabs usages.

This commit is contained in:
Dmitry Voronin 2025-01-11 13:08:28 +03:00
parent 3bafe0d813
commit 039de66c06
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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