metanix/tests/addressing-smoke.nix
2025-11-28 19:13:21 -06:00

36 lines
661 B
Nix

let
lib = import <nixpkgs/lib>;
addressing = import ../lib/addressing { inherit lib; };
spec = {
domain = "kasear.net";
locations = {
home = {
# note: owner/admins/users are *ignored* by mkNetworkFromSpec
owner = "yaro";
admins = [ "ops" ];
main = {
vlan = 10;
hosts = {
deimos = {
role = "server";
hostId = 1;
};
router = {
role = "router";
hostId = 1;
};
};
};
};
};
};
network = addressing.mkNetworkFromSpec spec;
in
{
inherit spec network;
}