diff options
author | Ben Sima <ben@bsima.me> | 2019-11-23 17:15:42 -0800 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-11-23 17:15:42 -0800 |
commit | 68f18f21758200efefe36b8a98853660e6e8b940 (patch) | |
tree | 5e4e6b85b767118d54c6dccad0dbb7ddcf7cd506 | |
parent | d0683537c8231bcfa1efaeb863b76dcd3949d21b (diff) |
Put outputs in _bild path
-rwxr-xr-x | bild | 2 | ||||
-rwxr-xr-x | push | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ #!/usr/bin/env bash -nix build -f default.nix "$@" +nix build -o "_bild/$@" -f default.nix "$@" if [[ $? != 0 ]] then echo ":: bild fail" @@ -1,6 +1,6 @@ #!/usr/bin/env bash -where="$1" -what=$(realpath "$2") +what=$(realpath "_bild/$1") +where="$2" nix copy --to ssh://root@$where $what ssh root@$where $what/bin/switch-to-configuration switch ssh root@$where nix-env --profile /nix/var/nix/profiles/system --set $what |