run: juggled with types a bit
This commit is contained in:
parent
29ab86a21f
commit
8f0c5e3513
4
run
4
run
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user