]> git.scottworley.com Git - syncthing-autoregister/blobdiff - pkgs/syncthing-set-id.nix
Follow nix version bump that changed the eval command line interface
[syncthing-autoregister] / pkgs / syncthing-set-id.nix
index 0277983370b4f1eb1d4347cb4f8f1e585160c165..798213231d28503b9a34210cb62e2eea5ea2db9f 100644 (file)
@@ -21,7 +21,7 @@ writeShellScriptBin "syncthing-set-id" ''
   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