From fbc3b47854c680c5584ee9b0354d276163251166 Mon Sep 17 00:00:00 2001
From: Luke Granger-Brown <hg@lukegb.com>
Date: Thu, 1 Apr 2021 15:55:54 +0000
Subject: [PATCH] bvm-prosody: fix :/

---
 ops/nixos/bvm-prosody/default.nix | 4 ++--
 ops/nixos/lib/bvm.nix             | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

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";
       };