justfile: add remote-switch recipe for remote NixOS rebuilds

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-09 21:15:50 -08:00
committed by Kat Huang
parent 68609a1b49
commit 505ba47485

View File

@@ -1,5 +1,8 @@
switch *args: switch *args:
sudo nixos-rebuild switch --flake '.#' --impure {{args}} sudo nixos-rebuild switch --flake '.#' --impure {{args}}
remote-switch host *args:
nixos-rebuild switch --flake '.#{{host}}' --target-host {{host}}.local --sudo --impure {{args}}
fix-local-path-issue: fix-local-path-issue:
nix flake update imalison-taffybar nix flake update imalison-taffybar