Extremely minimal sway setup.
This commit is contained in:
@@ -41,6 +41,10 @@ function main {
|
||||
vm_iso_ssh "${@}"
|
||||
elif [ "$cmd" = "iso_sync" ]; then
|
||||
vm_iso_sync "${@}"
|
||||
elif [ "$cmd" = "ssh" ]; then
|
||||
vm_ssh "${@}"
|
||||
elif [ "$cmd" = "sync" ]; then
|
||||
vm_sync "${@}"
|
||||
else
|
||||
die 1 "Unknown command: $cmd"
|
||||
fi
|
||||
@@ -97,4 +101,13 @@ function vm_iso_sync {
|
||||
gpg_auth ssh -t -p 60022 nixos@127.0.0.1 sudo nixos-install --flake ./configuration#odovm
|
||||
}
|
||||
|
||||
function vm_ssh {
|
||||
exec gpg_auth ssh -p 60022 127.0.0.1
|
||||
}
|
||||
|
||||
function vm_sync {
|
||||
gpg_auth rsync -av --delete --progress -e 'ssh -p 60022' "$DIR/../configuration" 127.0.0.1:~/
|
||||
gpg_auth ssh -t -p 60022 127.0.0.1 doas nixos-rebuild boot --flake ./configuration#odovm
|
||||
}
|
||||
|
||||
main "${@}"
|
||||
|
||||
Reference in New Issue
Block a user