nixos-config/justfile
Sridhar Ratnakumar c6efa50e65 Use newer version of just
until it is upgraded in nixpkgs, like:

https://github.com/NixOS/nixpkgs/pull/311583
2024-05-26 15:32:14 -04:00

33 lines
No EOL
632 B
Makefile

default:
@just --list
# Activate local configuration
activate:
nix run
# Format the nix source tree
fmt:
treefmt
# Deploy to all remote machines
deploy:
colmena apply --build-on-target
# Deploy to github-runner VM
[group('gr')]
gr-deploy:
colmena apply --build-on-target --on github-runner
# Re-animate the VM that was suspended until now.
[group('gr')]
gr-animate:
colmena upload-keys
ssh -t github-runner "sudo systemctl restart --all github-runner-*"
[group('gr')]
gr-inspect:
ssh -t github-runner "sudo systemctl status --all github-runner-*"
[group('gr')]
gr-ssh:
ssh -t github-runner