From 74371dbe8adad906e7fb9c95d6ed572ed42587b9 Mon Sep 17 00:00:00 2001
From: Luke Granger-Brown <hg@lukegb.com>
Date: Sat, 31 Oct 2020 17:04:30 +0000
Subject: [PATCH] totoro: add br-int interface

---
 go/go.mod                    | 2 +-
 ops/nixos/totoro/default.nix | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/go/go.mod b/go/go.mod
index 50142abf42..d515bfa4db 100644
--- a/go/go.mod
+++ b/go/go.mod
@@ -10,7 +10,7 @@ require (
 	github.com/dghubble/gologin/v2 v2.2.0
 	github.com/dghubble/oauth1 v0.6.0
 	github.com/dgrijalva/jwt-go v3.2.0+incompatible
-	github.com/google/safehtml v0.0.2 // indirect
+	github.com/google/safehtml v0.0.2
 	github.com/gorilla/mux v1.8.0
 	github.com/gorilla/securecookie v1.1.1
 	github.com/gorilla/sessions v1.2.1
diff --git a/ops/nixos/totoro/default.nix b/ops/nixos/totoro/default.nix
index 0fe86bb696..fe129accde 100644
--- a/ops/nixos/totoro/default.nix
+++ b/ops/nixos/totoro/default.nix
@@ -62,6 +62,13 @@ in {
     useDHCP = false;
     interfaces.br-ext.useDHCP = true;
     bridges.br-ext.interfaces = [ "enp0s31f6" ];
+
+    interfaces.br-int = {
+      virtual = true;
+      useDHCP = false;
+      ipv4.addresses = [{ address = "10.0.0.2"; prefixLength = 24; }];
+    };
+    bridges.br-int.interfaces = [];
   };
 
   # Virtualisation