nix/justfile

29 lines
736 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
# Update flake lock file
update:
nix flake update