diff --git a/ops/nixos/bvm-prosody/default.nix b/ops/nixos/bvm-prosody/default.nix index eb22be0459..de0d00e47a 100644 --- a/ops/nixos/bvm-prosody/default.nix +++ b/ops/nixos/bvm-prosody/default.nix @@ -23,8 +23,8 @@ in { ipv4.addresses = [{ address = "92.118.28.3"; prefixLength = 24; }]; ipv6.addresses = [{ address = "2a09:a441::3"; prefixLength = 32; }]; }; - networking.defaultGateway = { address = "92.118.28.1"; interface = "enp6s0"; }; - networking.defaultGateway6 = { address = "2a09:a441::1"; interface = "enp6s0"; }; + defaultGateway = { address = "92.118.28.1"; interface = "enp6s0"; }; + defaultGateway6 = { address = "2a09:a441::1"; interface = "enp6s0"; }; }; my.ip.tailscale = "100.86.22.44"; diff --git a/ops/nixos/lib/bvm.nix b/ops/nixos/lib/bvm.nix index 8a1d53a88c..f20b627f00 100644 --- a/ops/nixos/lib/bvm.nix +++ b/ops/nixos/lib/bvm.nix @@ -54,7 +54,7 @@ ]; useDHCP = false; - defaultGateway = { + defaultGateway = lib.mkDefault { address = "10.100.0.1"; interface = "enp1s0"; };