nix/justfile
2026-02-26 13:41:57 -08:00

33 lines
806 B
Makefile

# Deploy config to a host (builds remotely, activates remotely)
build-deploy-remote host target:
nixos-rebuild switch \
--flake .#{{host}} \
--target-host {{target}} \
--build-host {{target}}
# Deploy config to a host (builds locally, activates remotely)
deploy-remote host target:
nixos-rebuild switch \
--flake .#{{host}} \
--target-host {{target}}
# Deploy config to a host (builds locally, activates locally)
deploy-sudo host:
sudo nixos-rebuild switch \
--flake .#{{host}}
# Shortcut: deploy ruil (remote)
deploy-ruil:
just deploy-remote ruil root@ruil.hunnur.com
# Shortcut: deploy liminal (local)
deploy-liminal:
just deploy-sudo liminal
# Shortcut: deploy zima (local)
deploy-zima:
just deploy-sudo zima
# Update flake lock file
update:
nix flake update