From 596a1e2e5d6820462b7e4f16abcd47ee6290606f Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 2 Nov 2021 10:45:09 +0100 Subject: Networking configuration --- node/caribou.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'node') diff --git a/node/caribou.nix b/node/caribou.nix index 1ffdaf1..ca64293 100644 --- a/node/caribou.nix +++ b/node/caribou.nix @@ -12,7 +12,16 @@ prefixLength = 24; } ]; - networking.interfaces.enp0s20u1.useDHCP = true; + + # Route internet traffic via USB modem (=phone) on other computer + networking.nameservers = [ "9.9.9.9" ]; + networking.defaultGateway = { + address = "192.168.1.14"; + interface = "eno1"; + }; + + # OR use USB modem plugged in here + #networking.interfaces.enp0s20u1.useDHCP = true; # Enable nix-serve services.nix-serve = { -- cgit v1.2.3