From e16b7079a4e2f5c8e9c1168667c8420e2a751626 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Mon, 27 Jul 2020 15:43:39 -0700 Subject: [PATCH 1/1] Name deviceIDFilename --- tests/automatic-enrollment.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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} ]; } ''; -- 2.44.1