Enable trimming of trailing whitespace as a pre-commit hook

This commit is contained in:
Nicolas Jeannerod 2024-11-20 13:07:03 +01:00
parent fe0c69f6d9
commit 8ad1457763
Signed by untrusted user: Niols
GPG key ID: 35DB9EC8886E1CB8
4 changed files with 17 additions and 13 deletions

View file

@ -60,6 +60,10 @@
enable = true;
inherit files;
};
trim-trailing-whitespace = {
enable = true;
inherit files;
};
};
devShells.default = pkgs.mkShell {

View file

@ -84,7 +84,7 @@
########### here starts the automated bit #####################
table inet filter {
chain input {
type filter hook input priority 0;
type filter hook input priority 0;
policy drop;
# established/related connections
@ -97,7 +97,7 @@
# loopback interface
iifname lo accept
# icmp
ip protocol icmp icmp type { destination-unreachable, echo-reply, echo-request, source-quench, time-exceeded } accept
# Without the nd-* ones ipv6 will not work.
@ -126,10 +126,10 @@
table ip nat {
chain postrouting {
}
}
chain prerouting {
}
}
}
'';
};
};

View file

@ -72,7 +72,7 @@
########### here starts the automated bit #####################
table inet filter {
chain input {
type filter hook input priority 0;
type filter hook input priority 0;
policy drop;
# established/related connections
@ -85,7 +85,7 @@
# loopback interface
iifname lo accept
# icmp
ip protocol icmp icmp type { destination-unreachable, echo-reply, echo-request, source-quench, time-exceeded } accept
# Without the nd-* ones ipv6 will not work.
@ -113,10 +113,10 @@
table ip nat {
chain postrouting {
}
}
chain prerouting {
}
}
}
'';
};
};

View file

@ -33,7 +33,7 @@
$wgUseImageMagick = true;
$wgMaxShellMemory = 524288;
$wgSVGMetadataCutoff = 1024*1024;
$wgAllowExternalImages = false;
$wgAllowExternalImages = false;
## Permissions
$wgGroupPermissions['*']['edit'] = false;
@ -139,7 +139,7 @@
########### here starts the automated bit #####################
table inet filter {
chain input {
type filter hook input priority 0;
type filter hook input priority 0;
policy drop;
# established/related connections
@ -152,7 +152,7 @@
# loopback interface
iifname lo accept
# icmp
ip protocol icmp icmp type { destination-unreachable, echo-reply, echo-request, source-quench, time-exceeded } accept
# Without the nd-* ones ipv6 will not work.
@ -181,10 +181,10 @@
table ip nat {
chain postrouting {
}
}
chain prerouting {
}
}
}
'';
};
};