run: juggled with types a bit

This commit is contained in:
tv 2015-03-19 23:00:57 +01:00
parent 29ab86a21f
commit 8f0c5e3513

4
run
View File

@ -12,7 +12,7 @@ main() {
esac
}
# deploy : nix-file x hostname -> ()
# deploy : nixos-config x [user@]hostname -> ()
deploy() {(
main=$1
target=$2
@ -23,7 +23,7 @@ deploy() {(
ssh "$target" nixos-rebuild switch -I nixos-config=/etc/nixos/"$main"
)}
# rsync_filter : nix-file -> rsync-filter
# rsync_filter : nixos-config -> rsync-filter
rsync_filter() {(
main=$1