summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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