summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-11-23 17:15:42 -0800
committerBen Sima <ben@bsima.me>2019-11-23 17:15:42 -0800
commit68f18f21758200efefe36b8a98853660e6e8b940 (patch)
tree5e4e6b85b767118d54c6dccad0dbb7ddcf7cd506
parentd0683537c8231bcfa1efaeb863b76dcd3949d21b (diff)
Put outputs in _bild path
-rwxr-xr-xbild2
-rwxr-xr-xpush4
2 files changed, 3 insertions, 3 deletions
diff --git a/bild b/bild
index 5466d52..5b74ffb 100755
--- a/bild
+++ b/bild
@@ -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"
diff --git a/push b/push
index 8b1814e..1fe9506 100755
--- a/push
+++ b/push
@@ -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