Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/docs/examples/semi-spread/common.nix

22 lines
680 B
Nix

# Imported by every machine in the swarm: the swarm's shared facts, the VPN and
# the names inside it. `services.hyperhive.swarm.*` has to be identical on all
# of them, so it lives here and nowhere else.
{
imports = [
./wireguard.nix
./gateway.nix
./dns.nix
];
services.hyperhive.swarm = {
domain = "myswarm.example";
# Every hive, including the one a machine does not run. Names only: each
# hive's domain defaults to `<name>.myswarm.example`. A hive name may not
# contain "hive", "agent" or "swarm", so the machines `hive-one` and
# `hive-two` run the hives `one` and `two`.
hives = {
one = { };
two = { };
};
};
}