file=$(realpath "$1")
name=''${2:-"$HOSTNAME"}
if (( $# < 3));then
- configDir=$(${nix}/bin/nix eval --raw '(import <nixos/nixos> {}).config.services.syncthing.configDir')
+ configDir=$(${nix}/bin/nix --experimental-features nix-command eval --impure --raw --expr '(import <nixos/nixos> {}).config.services.syncthing.configDir')
id=$(${syncthing}/bin/syncthing -home="$configDir" -device-id)
else
id=$3
def verifyDeviceIDSet(machine, expectedDevice):
machine.wait_until_succeeds(
- '(( "$(nix eval --raw -f "<nixos/nixos>" config.services.syncthing.declarative.devices.%s.id | wc -c)" == 63 ))'
+ '(( "$(nix --experimental-features nix-command eval --impure --raw --expr "(import <nixos/nixos> {}).config.services.syncthing.declarative.devices.%s.id" | wc -c)" == 63 ))'
% expectedDevice
)