]> git.scottworley.com Git - syncthing-autoregister/commitdiff
Follow services.syncthing.devices rename
authorScott Worley <scottworley@scottworley.com>
Mon, 3 Jun 2024 07:13:54 +0000 (00:13 -0700)
committerScott Worley <scottworley@scottworley.com>
Mon, 3 Jun 2024 07:13:54 +0000 (00:13 -0700)
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"