nixos-config/hosts/midas/network/default.nix

16 lines
334 B
Nix

{ ... }:
{
networking = {
interfaces."enp0s31f6".ipv4.addresses = [{
address = "10.2.0.1";
prefixLength = 8;
}];
defaultGateway = {
address = "10.1.0.1";
interface = "enp0s31f6";
};
};
# Enable IP forwarding for the server configuration
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
}