]> git.scottworley.com Git - syncthing-autoregister/blobdiff - pkgs/syncthing-set-id.nix
Follow renames in test data
[syncthing-autoregister] / pkgs / syncthing-set-id.nix
index f20798d83508f1ecc04e34c48ae842e54c34ae15..4c3ddbe5dbb3c37791b22a1aed1307a84a850362 100644 (file)
@@ -44,7 +44,7 @@ writeShellScriptBin "syncthing-set-id" ''
       { file, name, id }:
       let pkgs = import <nixpkgs> { };
       in pkgs.lib.generators.toPretty { } (pkgs.lib.recursiveUpdate (import file) {
-        services.syncthing.devices."''${name}".id = id;
+        services.syncthing.settings.devices."''${name}".id = id;
       })
     ' | ${jq}/bin/jq -r | ${nixfmt}/bin/nixfmt > "$tmp"