Nixos-Configuration/modules/nixos/common/incus.nix
Jermeiah S c185beb1d3
All checks were successful
/ check (push) Successful in 59s
/ deploy (push) Has been skipped
remove firewall temp
2025-06-22 18:43:54 -04:00

35 lines
677 B
Nix

{
systemd.network = {
enable = true;
networks."50-eth0" = {
matchConfig.Name = "eth0";
networkConfig = {
DHCP = "ipv4";
IPv6AcceptRA = true;
};
linkConfig.RequiredForOnline = "routable";
};
};
networking = {
firewall = {
# enable = true;
interfaces = {
ygg0 = {
allowedTCPPorts = [ 22 ];
allowedUDPPorts = [ ];
};
};
# Default deny policy for all interfaces (including ygg0)
allowPing = false;
allowedTCPPorts = [ ];
allowedUDPPorts = [ ];
};
dhcpcd.enable = false;
useDHCP = false;
useHostResolvConf = false;
};
}