bvm-radius: init
This commit is contained in:
parent
158e0afcf3
commit
4b1fd796ae
3 changed files with 33 additions and 1 deletions
31
ops/nixos/bvm-radius/default.nix
Normal file
31
ops/nixos/bvm-radius/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
||||||
|
#
|
||||||
|
# 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";
|
||||||
|
}
|
|
@ -41,6 +41,7 @@ let
|
||||||
"bvm-matrix"
|
"bvm-matrix"
|
||||||
"bvm-minecraft"
|
"bvm-minecraft"
|
||||||
"bvm-netbox"
|
"bvm-netbox"
|
||||||
|
"bvm-radius"
|
||||||
];
|
];
|
||||||
rebuilder = system: (import ./lib/rebuilder.nix (args // { system = system; }));
|
rebuilder = system: (import ./lib/rebuilder.nix (args // { system = system; }));
|
||||||
systemCfgs = lib.genAttrs systems
|
systemCfgs = lib.genAttrs systems
|
||||||
|
|
|
@ -13,7 +13,7 @@ in {
|
||||||
isoImage.isoName = lib.mkForce "nixos-${depot.version}-${pkgs.stdenv.hostPlatform.system}.iso";
|
isoImage.isoName = lib.mkForce "nixos-${depot.version}-${pkgs.stdenv.hostPlatform.system}.iso";
|
||||||
|
|
||||||
isoImage.storeContents = [
|
isoImage.storeContents = [
|
||||||
depot.ops.nixos.systems.bvm-netbox
|
depot.ops.nixos.systems.bvm-radius
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = "21.05";
|
system.stateVersion = "21.05";
|
||||||
|
|
Loading…
Reference in a new issue