From: Scott Worley Date: Mon, 27 Jul 2020 22:43:39 +0000 (-0700) Subject: Name deviceIDFilename X-Git-Url: http://git.scottworley.com/syncthing-autoregister/commitdiff_plain/e16b7079a4e2f5c8e9c1168667c8420e2a751626?hp=2475b5344ca33d7aad5b57f42310994d60b80ee3 Name deviceIDFilename --- diff --git a/tests/automatic-enrollment.nix b/tests/automatic-enrollment.nix index 1a6b360..803013d 100644 --- a/tests/automatic-enrollment.nix +++ b/tests/automatic-enrollment.nix @@ -1,5 +1,6 @@ import ({ pkgs, lib, ... }: let + deviceIDFilename = "/tmp/syncthing-auto-register-test-device-ids.nix"; configuration = pkgs.writeText "configuration.nix" '' { pkgs, ... }: { imports = [ @@ -11,7 +12,7 @@ import ({ pkgs, lib, ... }: openDefaultPorts = true; autoRegister = { enable = true; - path = "/tmp/syncthing-auto-register-test-device-ids.nix"; + path = "${deviceIDFilename}"; }; }; environment.systemPackages = with pkgs; [ nix ]; @@ -34,7 +35,7 @@ import ({ pkgs, lib, ... }: { imports = [ ${configuration} - /tmp/syncthing-auto-register-test-device-ids.nix + ${deviceIDFilename} ]; } '';