From 4b1fd796aec254c42114927a4fb88a899b2aff1b Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 24 Sep 2021 22:50:30 +0000 Subject: [PATCH] bvm-radius: init --- ops/nixos/bvm-radius/default.nix | 31 +++++++++++++++++++++++++++++++ ops/nixos/default.nix | 1 + ops/nixos/installcd/default.nix | 2 +- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 ops/nixos/bvm-radius/default.nix diff --git a/ops/nixos/bvm-radius/default.nix b/ops/nixos/bvm-radius/default.nix new file mode 100644 index 0000000000..b3018c2f59 --- /dev/null +++ b/ops/nixos/bvm-radius/default.nix @@ -0,0 +1,31 @@ +# SPDX-FileCopyrightText: 2020 Luke Granger-Brown +# +# SPDX-License-Identifier: Apache-2.0 + +{ config, depot, pkgs, ... }: +let + inherit (depot.ops) secrets; +in { + imports = [ + ../lib/bvm.nix + ]; + + # Networking! + networking = { + hostName = "bvm-radius"; + hostId = "dcc75f10"; + + interfaces.enp1s0 = { + ipv4.addresses = [{ address = "10.100.0.207"; prefixLength = 23; }]; + }; + interfaces.enp2s0 = { + ipv4.addresses = [{ address = "92.118.28.9"; prefixLength = 24; }]; + ipv6.addresses = [{ address = "2a09:a441::9"; prefixLength = 32; }]; + }; + defaultGateway = { address = "92.118.28.1"; interface = "enp2s0"; }; + defaultGateway6 = { address = "2a09:a441::1"; interface = "enp2s0"; }; + }; + # my.ip.tailscale = "100.81.27.52"; + + system.stateVersion = "21.05"; +} diff --git a/ops/nixos/default.nix b/ops/nixos/default.nix index aa6684964f..cba2000553 100644 --- a/ops/nixos/default.nix +++ b/ops/nixos/default.nix @@ -41,6 +41,7 @@ let "bvm-matrix" "bvm-minecraft" "bvm-netbox" + "bvm-radius" ]; rebuilder = system: (import ./lib/rebuilder.nix (args // { system = system; })); systemCfgs = lib.genAttrs systems diff --git a/ops/nixos/installcd/default.nix b/ops/nixos/installcd/default.nix index 0a96b8ca63..7323228ccc 100644 --- a/ops/nixos/installcd/default.nix +++ b/ops/nixos/installcd/default.nix @@ -13,7 +13,7 @@ in { isoImage.isoName = lib.mkForce "nixos-${depot.version}-${pkgs.stdenv.hostPlatform.system}.iso"; isoImage.storeContents = [ - depot.ops.nixos.systems.bvm-netbox + depot.ops.nixos.systems.bvm-radius ]; system.stateVersion = "21.05";