import <nixpkgs/nixos/tests/make-test-python.nix> ({ pkgs, lib, ... }:
let
+ deviceIDFilename = "/tmp/syncthing-auto-register-test-device-ids.nix";
configuration = pkgs.writeText "configuration.nix" ''
{ pkgs, ... }: {
imports = [
openDefaultPorts = true;
autoRegister = {
enable = true;
- path = "/tmp/syncthing-auto-register-test-device-ids.nix";
+ path = "${deviceIDFilename}";
};
};
environment.systemPackages = with pkgs; [ nix ];
{
imports = [
${configuration}
- /tmp/syncthing-auto-register-test-device-ids.nix
+ ${deviceIDFilename}
];
}
'';