30 lines
628 B
Nix
30 lines
628 B
Nix
{
|
|
# Classic deny all
|
|
networking.nftables.enable = true;
|
|
networking.firewall = {
|
|
enable = true;
|
|
allowedTCPPorts = [ ];
|
|
allowedUDPPorts = [ ];
|
|
};
|
|
networking = {
|
|
nameservers = [
|
|
"45.90.28.0"
|
|
"2a07:a8c0::"
|
|
"45.90.30.0"
|
|
"2a07:a8c1::"
|
|
];
|
|
networkmanager.dns = "none";
|
|
};
|
|
|
|
# No fork bomb
|
|
environment.etc."security/limits.conf".text = ''
|
|
* soft nproc 2000
|
|
* hard nproc 4000
|
|
'';
|
|
|
|
# Wheel group may edit the configuration.
|
|
systemd.tmpfiles.rules = [
|
|
"Z /etc/nixos ~6070 root wheel"
|
|
"A /etc/nixos - - - - d:u::rwx,d:g::-,d:g:wheel:rwx,d:mask:rwx"
|
|
];
|
|
}
|