Compare commits
1 Commits
push-pmmln
...
push-lxuyo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6531ca69a |
@@ -1,4 +1,9 @@
|
|||||||
{ ... }:
|
{
|
||||||
|
lib,
|
||||||
|
clanLib,
|
||||||
|
directory,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
_class = "clan.service";
|
_class = "clan.service";
|
||||||
manifest.name = "clan-core/mycelium";
|
manifest.name = "clan-core/mycelium";
|
||||||
@@ -30,8 +35,24 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
perInstance =
|
perInstance =
|
||||||
{ settings, ... }:
|
|
||||||
{
|
{
|
||||||
|
settings,
|
||||||
|
roles,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
|
||||||
|
exports.networking = {
|
||||||
|
peers = lib.mapAttrs (name: _machine: {
|
||||||
|
host.plain = clanLib.vars.getPublicValue {
|
||||||
|
machine = name;
|
||||||
|
generator = "mycelium";
|
||||||
|
file = "ip";
|
||||||
|
flake = directory;
|
||||||
|
};
|
||||||
|
}) roles.peer.machines;
|
||||||
|
};
|
||||||
|
|
||||||
nixosModule =
|
nixosModule =
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
|
|||||||
Reference in New Issue
Block a user