metanix/tests/addressing-smoke.nix

36 lines
664 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;
}