syncthing: update facts to new system

This commit is contained in:
a-kenji
2024-06-06 10:16:29 +02:00
committed by kenji
parent 9206182e15
commit d8e80bb0c8

View File

@@ -27,7 +27,7 @@ let
}) syncthingPublicKeyMachines; }) syncthingPublicKeyMachines;
in in
{ {
options.clan.static-syncthing-peers = { options.clan.syncthing-static-peers = {
excludeMachines = lib.mkOption { excludeMachines = lib.mkOption {
type = lib.types.listOf lib.types.str; type = lib.types.listOf lib.types.str;
example = [ config.clanCore.machineName ]; example = [ config.clanCore.machineName ];
@@ -66,8 +66,8 @@ in
configDir = "/var/lib/syncthing"; configDir = "/var/lib/syncthing";
group = "syncthing"; group = "syncthing";
key = lib.mkDefault config.clan.secrets.syncthing.secrets."syncthing.key".path or null; key = lib.mkDefault config.clanCore.facts.services.syncthing.secret."syncthing.key".path or null;
cert = lib.mkDefault config.clan.secrets.syncthing.secrets."syncthing.cert".path or null; cert = lib.mkDefault config.clanCore.facts.services.syncthing.secret."syncthing.cert".path or null;
}; };
clanCore.facts.services.syncthing = { clanCore.facts.services.syncthing = {