diff --git a/ci/Jenkinsfile.nix-cache b/ci/Jenkinsfile.nix-cache index c3b10b9861..9811eb30d6 100644 --- a/ci/Jenkinsfile.nix-cache +++ b/ci/Jenkinsfile.nix-cache @@ -98,8 +98,8 @@ pipeline { nix.shell(""" find /nix/store/ -mindepth 1 -maxdepth 1 -type d \ -not -name '*.links' -and -not -name '*-status-react-*' \ - | xargs nix-copy-closure -v \ - --to ${params.NIX_CACHE_USER}@${params.NIX_CACHE_HOST} + | xargs nix copy \ + --to ssh-ng://${params.NIX_CACHE_USER}@${params.NIX_CACHE_HOST} """, pure: false ) diff --git a/nix/nix.conf b/nix/nix.conf index 19488b3659..d9bbe8a985 100644 --- a/nix/nix.conf +++ b/nix/nix.conf @@ -11,3 +11,5 @@ keep-derivations = true keep-outputs = true # Extra isolation for network and filesystem, doesn't work on MacOS build-use-sandbox = false +# Enable Nix v2 interface. +experimental-features = nix-command