diff options
author | Alex Auvolat <alex@adnab.me> | 2021-11-02 10:45:09 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-11-02 10:45:09 +0100 |
commit | 596a1e2e5d6820462b7e4f16abcd47ee6290606f (patch) | |
tree | f5983bbfbe16dd7a6ba022394e8cb7031c3f5545 /node/caribou.nix | |
parent | 077d466bcd46420d0fa7f3a16b4e00c87ca69d2f (diff) | |
download | nixcfg-596a1e2e5d6820462b7e4f16abcd47ee6290606f.tar.gz nixcfg-596a1e2e5d6820462b7e4f16abcd47ee6290606f.zip |
Networking configuration
Diffstat (limited to 'node/caribou.nix')
-rw-r--r-- | node/caribou.nix | 11 |
1 files changed, 10 insertions, 1 deletions
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 = { |