Fix nix copy locking in terranix

Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
magic_rb 2024-06-02 23:59:38 +02:00
parent 88722d14eb
commit 98f69b92f8
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -45,8 +45,9 @@ in {
cd $FLAKE_ROOT
nix build "${flakePath}"
mkdir -p /tmp/terranix
${concatMapStringsSep "\n" (host: ''
flock /tmp/terranix/${host} -x nix copy "$_system_path" --to ssh-ng://${host} -s --no-check-sigs
flock -x /tmp/terranix/${host} nix copy "$_system_path" --to ssh-ng://${host} -s --no-check-sigs
'')
hosts}