diff --git a/nix/contabo b/nix/contabo new file mode 100644 index 0000000..5710aaa --- /dev/null +++ b/nix/contabo @@ -0,0 +1,18 @@ +[Match] +MACAddress=00:50:56:49:f0:60 + +[Network] +LinkLocalAddressing=ipv6 +Address=184.174.32.252/21 +Address=2a02:c206:2119:3519:0000:0000:0000:0001/64 +Gateway=fe80::1 +DNS=213.136.95.11 +DNS=213.136.95.10 +DNS=2a02:c207::2:53 +DNS=2a02:c207::1:53 +Domains=invalid + +[Route] +Destination=0.0.0.0/0 +Gateway=184.174.32.1 +GatewayOnlink=true diff --git a/nix/hive.nix b/nix/hive.nix index 9a574d3..5839a59 100644 --- a/nix/hive.nix +++ b/nix/hive.nix @@ -207,6 +207,26 @@ ./modules/snowflake-proxy ]; + networking.useDHCP = false; + systemd.network.enable = true; + systemd.network.networks."10-ens18" = { + matchConfig.MacAddress = "00:50:56:49:f0:60"; + networkConfig = { + LinkLocalAddressing = "ipv6"; + Address = [ "184.174.32.252/21" "2a02:c206:2119:3519:0000:0000:0000:0001/64" ]; + Gateway = "fe80::1"; + DNS = [ "213.136.95.11" "213.136.95.10" "2a02:c207::2:53" "2a02:c207::1:53" "invalid" ]; + Domains = "invalid"; + }; + routes = [ + { + Destination = "0.0.0.0/0"; + Gateway = "184.174.32.1"; + GatewayOnLink = true; + } + ]; + }; + system.stateVersion = "23.11"; }; # VPS3 is the primary monitoring/metrics server. diff --git a/nix/nixos b/nix/nixos new file mode 100644 index 0000000..27a6d4e --- /dev/null +++ b/nix/nixos @@ -0,0 +1,19 @@ +[Match] +MacAddress=00:50:56:49:f0:60 + +[Network] +Address=184.174.32.252/21 +Address=2a02:c206:2119:3519:0000:0000:0000:0001/64 +DNS=213.136.95.11 +DNS=213.136.95.10 +DNS=2a02:c207::2:53 +DNS=2a02:c207::1:53 +DNS=invalid +Gateway=fe80::1 +LinkLocalAddressing=ipv6 + +[Route] +Destination=0.0.0.0/0 +Gateway=184.174.32.1 +GatewayOnLink=true +