summaryrefslogtreecommitdiff
path: root/Biz/Cloud/Networking.nix
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-11-16 11:47:36 -0500
committerBen Sima <ben@bsima.me>2020-11-16 11:47:36 -0500
commit656816ed9af6277bbeb1c5e74471bace3a78e5be (patch)
tree8d9b28d4a804fdb258f17b32e675bf9a4dcf8a98 /Biz/Cloud/Networking.nix
parenteb3ee6f1867eb19d2a262826038b2615b3def762 (diff)
get build working and capitalize more files
Diffstat (limited to 'Biz/Cloud/Networking.nix')
-rw-r--r--Biz/Cloud/Networking.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/Biz/Cloud/Networking.nix b/Biz/Cloud/Networking.nix
new file mode 100644
index 0000000..b259d86
--- /dev/null
+++ b/Biz/Cloud/Networking.nix
@@ -0,0 +1,32 @@
+{ lib, config, ... }:
+
+{
+ networking = {
+ firewall = {
+ allowedTCPPorts = [ 22 80 443 ];
+ };
+ nameservers = [
+ "67.207.67.2"
+ "67.207.67.3"
+ ];
+ defaultGateway = "159.89.128.1";
+ defaultGateway6 = "2604:a880:2:d0::1";
+ dhcpcd.enable = false;
+ usePredictableInterfaceNames = lib.mkForce true;
+ interfaces = {
+ eth0 = {
+ ipv4.addresses = [
+ { address="159.89.128.69"; prefixLength=20; }
+ { address="10.46.0.6"; prefixLength=16; }
+ ];
+ ipv6.addresses = [
+ { address="2604:a880:2:d0::35:c001"; prefixLength = 64; }
+ { address="fe80::e899:c0ff:fe9c:e194"; prefixLength = 64; }
+ ];
+ };
+ };
+ };
+ services.udev.extraRules = ''
+ ATTR{address}=="ea:99:c0:9c:e1:94", NAME="eth0"
+ '';
+}