Compare commits
1 Commits
main
...
push-pmmln
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97f5ffd813 |
@@ -56,6 +56,8 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
clanLib,
|
clanLib,
|
||||||
|
lib,
|
||||||
|
directory,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -298,6 +300,18 @@ in
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
exports.networking = {
|
||||||
|
peers = lib.mapAttrs (name: _machine: {
|
||||||
|
host.plain =
|
||||||
|
clanLib.vars.getPublicValue {
|
||||||
|
flake = directory;
|
||||||
|
machine = name;
|
||||||
|
generator = "wireguard-network-${instanceName}";
|
||||||
|
file = "prefix";
|
||||||
|
}
|
||||||
|
+ "::1";
|
||||||
|
}) roles.controller.machines;
|
||||||
|
};
|
||||||
|
|
||||||
# Controllers connect to all peers and other controllers
|
# Controllers connect to all peers and other controllers
|
||||||
nixosModule =
|
nixosModule =
|
||||||
|
|||||||
Reference in New Issue
Block a user