nixos-config/Justfile

29 lines
508 B
Makefile

set dotenv-load
default:
@just --choose
update:
nix flake update --commit-lock-file
build machine="":
nixos-rebuild --flake .#{{machine}} build
diff:
nvd diff /run/current-system ./result
switch machine="":
nixos-rebuild --flake .#{{machine}} --use-remote-sudo switch
boot machine="":
nixos-rebuild --flake .#{{machine}} --use-remote-sudo boot
fmt:
nix fmt
deploy host:
colmena apply --on {{host}}
[confirm]
cold-deploy host:
colmena apply --on {{host}} --reboot