moving toward a multi-machine configuration !
This commit is contained in:
parent
6cc7df17a7
commit
4cef631a8c
18 changed files with 250 additions and 181 deletions
18
security.nix
18
security.nix
|
|
@ -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"
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue