Save remote build results in a profile
This commit is contained in:
parent
11c7ae6317
commit
eb9d73637a
2 changed files with 2 additions and 1 deletions
|
@ -2,4 +2,5 @@
|
||||||
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
|
||||||
nixos-rebuild --flake .#$1 --target-host root@$1 --build-host localhost $2
|
nixos-rebuild --flake .#$1 --target-host root@$1 --build-host localhost $2
|
||||||
|
|
|
@ -6,7 +6,7 @@ if [ -z "${NO_LOCAL:-}" ]
|
||||||
then
|
then
|
||||||
pushd ../nixpkgs
|
pushd ../nixpkgs
|
||||||
git fetch --all --prune
|
git fetch --all --prune
|
||||||
git rebase upstream/nixos-unstable-small || exit 1
|
git rebase upstream/nixos-unstable || exit 1
|
||||||
git push || exit 1
|
git push || exit 1
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue