diff options
author | Ben Sima <ben@bsima.me> | 2020-04-03 16:43:51 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-04-03 16:43:51 -0700 |
commit | 0d37af4eba374c41a9ad3fa8d2f2251ddb6b58c5 (patch) | |
tree | 2fe862376d983f1b5470a2181defe0142c1b4560 /Com/Simatime/Prod/networking.nix | |
parent | c472472df38e0dcb4abe5745d8fdec48d7e4590b (diff) |
Rename Serval to Prod
Diffstat (limited to 'Com/Simatime/Prod/networking.nix')
-rwxr-xr-x | Com/Simatime/Prod/networking.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Com/Simatime/Prod/networking.nix b/Com/Simatime/Prod/networking.nix new file mode 100755 index 0000000..79fbe27 --- /dev/null +++ b/Com/Simatime/Prod/networking.nix @@ -0,0 +1,28 @@ +{ lib, ... }: { + # This file was populated at runtime with the networking + # details gathered from the active system. + networking = { + nameservers = [ + "67.207.67.2" + "67.207.67.3" + ]; + defaultGateway = "157.245.160.1"; + defaultGateway6 = ""; + dhcpcd.enable = false; + usePredictableInterfaceNames = lib.mkForce true; + interfaces = { + eth0 = { + ipv4.addresses = [ + { address="157.245.167.217"; prefixLength=20; } + { address="10.46.0.8"; prefixLength=16; } + ]; + ipv6.addresses = [ + { address="fe80::242a:8bff:feb7:6afb"; prefixLength=64; } + ]; + }; + }; + }; + services.udev.extraRules = '' + ATTR{address}=="26:2a:8b:b7:6a:fb", NAME="eth0" + ''; +} |