1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
{ ... }: let wan = "enp9s0"; in { imports = [ ./router.nix ]; networking = { interfaces.${wan}.ipv4.addresses = [{ address = "172.16.148.20"; prefixLength = 22; }]; defaultGateway = { address = "172.16.148.1"; interface = wan; }; }; }