Compare commits
1 Commits
update-dev
...
push-pmmln
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97f5ffd813 |
@@ -56,6 +56,8 @@
|
||||
|
||||
{
|
||||
clanLib,
|
||||
lib,
|
||||
directory,
|
||||
...
|
||||
}:
|
||||
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
|
||||
nixosModule =
|
||||
|
||||
Reference in New Issue
Block a user