add deploy-rs for remotely deploy nixos config

This commit is contained in:
ulic-youthlic 2025-01-27 18:35:41 +08:00
parent cf03484587
commit ae7d74249b
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
15 changed files with 290 additions and 85 deletions

View file

@ -10,9 +10,9 @@ switch specialisation=DEFAULT_SPECIALISATION:
update:
nix flake update | spacer
push host target:
nixos-rebuild switch --flake {{ FLAKE_HOME }}#{{ host }} --target-host {{ target }} | spacer
deploy host:
deploy {{ FLAKE_HOME }}#{{ host }}
alias s := switch
alias u := update
alias p := push
alias d := deploy