Source fetched by Nix from Forgejo, build runs on server with DB access for prerendering. No manual git clone/pull needed.
21 lines
572 B
Makefile
21 lines
572 B
Makefile
[private]
|
|
default:
|
|
@just --list
|
|
|
|
[doc("Build and activate the new configuration immediately")]
|
|
deploy:
|
|
sudo nixos-rebuild switch --flake /etc/nixos#lab
|
|
|
|
[doc("Build the configuration without activating it")]
|
|
check:
|
|
sudo nixos-rebuild dry-build --flake /etc/nixos#lab
|
|
|
|
[doc("Pull latest from Forgejo, then build and activate")]
|
|
update:
|
|
git pull
|
|
sudo nixos-rebuild switch --flake /etc/nixos#lab
|
|
|
|
[doc("Pull latest website source, then rebuild and activate")]
|
|
update-site:
|
|
nix flake update website
|
|
sudo nixos-rebuild switch --flake /etc/nixos#lab
|