X-Git-Url: http://git.scottworley.com/syncthing-autoregister/blobdiff_plain/0043dc6823fd9acc5199976084507feb564f4ff0..186ceba3e10f8bd9722c9938fe0d8eafc63541df:/tests/automatic-enrollment.nix diff --git a/tests/automatic-enrollment.nix b/tests/automatic-enrollment.nix index 184bcc7..29a0bdf 100644 --- a/tests/automatic-enrollment.nix +++ b/tests/automatic-enrollment.nix @@ -26,7 +26,7 @@ import ({ pkgs, lib, ... }: modules = [ "${vmConfiguration}" ]; }; - # Also include a syncthing configuration with a declarative device id + # Also include a syncthing configuration with a device id # because using this feature pulls in additional dependencies. evaluatedSyncthingDeclarativeConfiguration = import { system = builtins.currentSystem; @@ -35,7 +35,7 @@ import ({ pkgs, lib, ... }: { services.syncthing = { enable = true; - declarative.folders.forDeps.path = "/nope"; + folders.forDeps.path = "/nope"; }; } ]; @@ -71,7 +71,7 @@ import ({ pkgs, lib, ... }: pkgs.writeText "configuration-with-folder.nix" '' { config, ... }: { imports = [ ${configurationWithDeviceIDs} ]; - services.syncthing.declarative.folders.foo = { + services.syncthing.folders.foo = { devices = [ "a" "b" ]; path = "''${config.services.syncthing.dataDir}/foo"; }; @@ -97,7 +97,7 @@ import ({ pkgs, lib, ... }: def verifyDeviceIDSet(machine, expectedDevice): machine.wait_until_succeeds( - '(( "$(nix eval --raw -f "" config.services.syncthing.declarative.devices.%s.id | wc -c)" == 63 ))' + '(( "$(nix --experimental-features nix-command eval --impure --raw --expr "(import {}).config.services.syncthing.declarative.devices.%s.id" | wc -c)" == 63 ))' % expectedDevice )