mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-26 01:56:13 +01:00
Fix nix copy
locking in terranix
Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
parent
88722d14eb
commit
98f69b92f8
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in a new issue