feat: move to single-user config
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user