feat: move to single-user config

This commit is contained in:
2026-04-26 18:08:48 +02:00
parent 75ba00929e
commit dba24ce5f3
27 changed files with 160 additions and 300 deletions
+4 -5
View File
@@ -7,19 +7,18 @@ let
syncthingMesh = lib.listToAttrs (
lib.concatMap (
machine:
lib.mapAttrsToList (
userName: user:
lib.optional (machine.syncthingId != null) (
let
name = "${userName}@${machine.name}";
name = "${config.repo.account.name}@${machine.name}";
in
{
inherit name;
value = {
inherit name;
id = user.syncthingId;
id = machine.syncthingId;
};
}
) (lib.filterAttrs (_: user: user.syncthingId != null) machine.users)
)
) (builtins.attrValues config.repo.machines)
);
in