forked from Fediversity/Fediversity
Enable trimming of trailing whitespace as a pre-commit hook
This commit is contained in:
parent
fe0c69f6d9
commit
8ad1457763
|
@ -60,6 +60,10 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
inherit files;
|
inherit files;
|
||||||
};
|
};
|
||||||
|
trim-trailing-whitespace = {
|
||||||
|
enable = true;
|
||||||
|
inherit files;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
########### here starts the automated bit #####################
|
########### here starts the automated bit #####################
|
||||||
table inet filter {
|
table inet filter {
|
||||||
chain input {
|
chain input {
|
||||||
type filter hook input priority 0;
|
type filter hook input priority 0;
|
||||||
policy drop;
|
policy drop;
|
||||||
|
|
||||||
# established/related connections
|
# established/related connections
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
|
|
||||||
# loopback interface
|
# loopback interface
|
||||||
iifname lo accept
|
iifname lo accept
|
||||||
|
|
||||||
# icmp
|
# icmp
|
||||||
ip protocol icmp icmp type { destination-unreachable, echo-reply, echo-request, source-quench, time-exceeded } accept
|
ip protocol icmp icmp type { destination-unreachable, echo-reply, echo-request, source-quench, time-exceeded } accept
|
||||||
# Without the nd-* ones ipv6 will not work.
|
# Without the nd-* ones ipv6 will not work.
|
||||||
|
@ -126,10 +126,10 @@
|
||||||
|
|
||||||
table ip nat {
|
table ip nat {
|
||||||
chain postrouting {
|
chain postrouting {
|
||||||
}
|
}
|
||||||
chain prerouting {
|
chain prerouting {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
########### here starts the automated bit #####################
|
########### here starts the automated bit #####################
|
||||||
table inet filter {
|
table inet filter {
|
||||||
chain input {
|
chain input {
|
||||||
type filter hook input priority 0;
|
type filter hook input priority 0;
|
||||||
policy drop;
|
policy drop;
|
||||||
|
|
||||||
# established/related connections
|
# established/related connections
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
|
|
||||||
# loopback interface
|
# loopback interface
|
||||||
iifname lo accept
|
iifname lo accept
|
||||||
|
|
||||||
# icmp
|
# icmp
|
||||||
ip protocol icmp icmp type { destination-unreachable, echo-reply, echo-request, source-quench, time-exceeded } accept
|
ip protocol icmp icmp type { destination-unreachable, echo-reply, echo-request, source-quench, time-exceeded } accept
|
||||||
# Without the nd-* ones ipv6 will not work.
|
# Without the nd-* ones ipv6 will not work.
|
||||||
|
@ -113,10 +113,10 @@
|
||||||
|
|
||||||
table ip nat {
|
table ip nat {
|
||||||
chain postrouting {
|
chain postrouting {
|
||||||
}
|
}
|
||||||
chain prerouting {
|
chain prerouting {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
$wgUseImageMagick = true;
|
$wgUseImageMagick = true;
|
||||||
$wgMaxShellMemory = 524288;
|
$wgMaxShellMemory = 524288;
|
||||||
$wgSVGMetadataCutoff = 1024*1024;
|
$wgSVGMetadataCutoff = 1024*1024;
|
||||||
$wgAllowExternalImages = false;
|
$wgAllowExternalImages = false;
|
||||||
|
|
||||||
## Permissions
|
## Permissions
|
||||||
$wgGroupPermissions['*']['edit'] = false;
|
$wgGroupPermissions['*']['edit'] = false;
|
||||||
|
@ -139,7 +139,7 @@
|
||||||
########### here starts the automated bit #####################
|
########### here starts the automated bit #####################
|
||||||
table inet filter {
|
table inet filter {
|
||||||
chain input {
|
chain input {
|
||||||
type filter hook input priority 0;
|
type filter hook input priority 0;
|
||||||
policy drop;
|
policy drop;
|
||||||
|
|
||||||
# established/related connections
|
# established/related connections
|
||||||
|
@ -152,7 +152,7 @@
|
||||||
|
|
||||||
# loopback interface
|
# loopback interface
|
||||||
iifname lo accept
|
iifname lo accept
|
||||||
|
|
||||||
# icmp
|
# icmp
|
||||||
ip protocol icmp icmp type { destination-unreachable, echo-reply, echo-request, source-quench, time-exceeded } accept
|
ip protocol icmp icmp type { destination-unreachable, echo-reply, echo-request, source-quench, time-exceeded } accept
|
||||||
# Without the nd-* ones ipv6 will not work.
|
# Without the nd-* ones ipv6 will not work.
|
||||||
|
@ -181,10 +181,10 @@
|
||||||
|
|
||||||
table ip nat {
|
table ip nat {
|
||||||
chain postrouting {
|
chain postrouting {
|
||||||
}
|
}
|
||||||
chain prerouting {
|
chain prerouting {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue