moving toward a multi-machine configuration !

This commit is contained in:
boyreau 2026-08-01 20:29:56 +02:00
commit 4cef631a8c
18 changed files with 250 additions and 181 deletions

View file

@ -1,9 +1,21 @@
{
# Classic deny all
networking.nftables.enable = true;
networking.firewall = {
enable = true;
# Lwk connect ports
allowedTCPPorts = [ 1716 ];
allowedUDPPorts = [ 1716 ];
allowedTCPPorts = [ ];
allowedUDPPorts = [ ];
};
# 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 4070 root wheel"
"A! /etc/nixos - - - - d:u::rwx,d:g::-,d:g:wheel:rwx,d:mask:rwx"
];
}