nixos/modules/router/default.nix

9 lines
135 B
Nix

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