From acf93cc9d51014bce740b4000f008c9c3a93c54c Mon Sep 17 00:00:00 2001 From: Noratrieb <48135649+Noratrieb@users.noreply.github.com> Date: Sun, 10 Aug 2025 15:19:31 +0200 Subject: [PATCH] wtf --- nix/contabo | 18 ++++++++++++++++++ nix/hive.nix | 20 ++++++++++++++++++++ nix/nixos | 19 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 nix/contabo create mode 100644 nix/nixos 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 a7b70b3..c5d1249 100644 --- a/nix/hive.nix +++ b/nix/hive.nix @@ -202,6 +202,26 @@ ./modules/garage ]; + 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 +