Fix remote building
This commit is contained in:
parent
003672d9ed
commit
2144790975
1 changed files with 4 additions and 2 deletions
|
@ -2,5 +2,7 @@
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
nix build --no-link --profile /nix/var/nix/profiles/per-user/charlotte/$1 .#nixosConfigurations.$1.config.system.build.toplevel
|
drv=$(nix eval .#nixosConfigurations.$1.config.system.build.toplevel.drvPath | tr -d '"')
|
||||||
nixos-rebuild --flake .#$1 --target-host root@$1 --build-host localhost $2
|
nix copy --derivation -s --to "ssh://root@$1" "$drv"
|
||||||
|
ssh root@$1 nix build -L --no-link "$drv"
|
||||||
|
nixos-rebuild --flake .#$1 --target-host root@$1 $2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue