Save remote build results in a profile

This commit is contained in:
Charlotte Van Petegem 2020-12-24 15:31:48 +01:00
parent 11c7ae6317
commit eb9d73637a
No known key found for this signature in database
GPG key ID: 019E764B7184435A
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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