nixos/modules/router/default.nix

9 lines
146 B
Nix

{ ... }: {
boot.kernel.sysctl = {
"net.ipv4.conf.all.forwarding" = true;
};
networking.interfaces.enp1s0 = {
useDHCP = true;
};
}