From 37be1e38f8f69b62fb1125b33bd36b882d29e42e Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Mon, 8 Feb 2021 20:45:15 +0000 Subject: [PATCH] ops/nixos: switch blades to static IPs --- ops/nixos/blade-janeway/default.nix | 3 +++ ops/nixos/lib/blade.nix | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ops/nixos/blade-janeway/default.nix b/ops/nixos/blade-janeway/default.nix index 9ddb13b0af..ab18245f8c 100644 --- a/ops/nixos/blade-janeway/default.nix +++ b/ops/nixos/blade-janeway/default.nix @@ -20,6 +20,9 @@ in { "enp4s0f0" "enp4s0f1" "enp5s0f0" "enp5s0f1" ]; + interfaces.bond0.ipv4.addresses = [{ + address = "192.168.1.180"; + }]; }; my.ip.tailscale = "100.121.116.85"; } diff --git a/ops/nixos/lib/blade.nix b/ops/nixos/lib/blade.nix index 67d04bc36f..e0defb95af 100644 --- a/ops/nixos/lib/blade.nix +++ b/ops/nixos/lib/blade.nix @@ -35,7 +35,6 @@ in { domain = "house.as205479.net"; nameservers = ["8.8.8.8" "8.8.4.4"]; useDHCP = false; - interfaces.bond0.useDHCP = true; bonds.bond0 = { driverOptions = { mode = "802.3ad"; @@ -43,6 +42,8 @@ in { lacp_rate = "fast"; }; }; + + defaultGateway = "192.168.1.5"; }; virtualisation.podman.enable = true;