Compare commits
3 Commits
push-lxuyo
...
push-pmmln
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97f5ffd813 | ||
|
|
196b98da36 | ||
|
|
42acbe95b8 |
@@ -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 =
|
||||||
|
|||||||
6
flake.lock
generated
6
flake.lock
generated
@@ -31,11 +31,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1760701190,
|
"lastModified": 1761899396,
|
||||||
"narHash": "sha256-y7UhnWlER8r776JsySqsbTUh2Txf7K30smfHlqdaIQw=",
|
"narHash": "sha256-XOpKBp6HLzzMCbzW50TEuXN35zN5WGQREC7n34DcNMM=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "3a9450b26e69dcb6f8de6e2b07b3fc1c288d85f5",
|
"rev": "6f4cf5abbe318e4cd1e879506f6eeafd83f7b998",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
Reference in New Issue
Block a user