nixos-config/Justfile

30 lines
508 B
Makefile
Raw Normal View History

2023-04-24 08:25:18 +02:00
set dotenv-load
default:
@just --choose
2023-10-09 14:35:02 +02:00
update:
nix flake update --commit-lock-file
2023-04-24 08:25:18 +02:00
build machine="":
nixos-rebuild --flake .#{{machine}} build
2023-04-19 09:36:35 +02:00
diff:
2023-04-24 08:25:18 +02:00
nvd diff /run/current-system ./result
switch machine="":
nixos-rebuild --flake .#{{machine}} --use-remote-sudo switch
2023-04-19 09:36:35 +02:00
2023-07-03 09:26:40 +02:00
boot machine="":
nixos-rebuild --flake .#{{machine}} --use-remote-sudo boot
2023-04-24 08:25:18 +02:00
fmt:
nix fmt
2023-04-21 11:19:49 +02:00
2023-04-24 08:25:18 +02:00
deploy host:
colmena apply --on {{host}}
[confirm]
cold-deploy host:
colmena apply --on {{host}} --reboot