made some changes

This commit is contained in:
2026-07-08 14:28:10 +02:00
parent d1cb4c492d
commit c29fbaad0d
4 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ _:
services.dnsmasq = {
enable = true;
settings = {
dhcp-range = [ "10.11.1.100,10.11.1.200,12h" ];
dhcp-range = [ "10.11.0.100,10.11.0.200,12h" ];
interface = "enp4s0";
server = [ "10.11.0.10" ];
+3 -3
View File
@@ -29,9 +29,9 @@ _:
firewall = {
enable = true;
#extraCommands = ''
# iptables -A nixos-fw -p tcp --dport 22 -s 10.11.0.0/24 -j ACCEPT
#'';
extraCommands = ''
iptables -A nixos-fw -p tcp --dport 22 -s 10.11.0.0/24 -j ACCEPT
'';
};
};
}
+7
View File
@@ -3,6 +3,13 @@ _:
services = {
openssh = {
enable = true;
extraConfig = "
Port 51337
PermitRootLogin no
PasswordAuthentication no
MaxSessions 1
MaxAuthTries 1
";
};
};
}
+1 -1
View File
@@ -9,7 +9,7 @@ _:
security = {
doas = {
enable = true;
extraConfig = "permit nopass keepenv :wheel";
extraConfig = "permit keepenv :wheel";
};
};
}