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="":
|
2024-03-28 16:10:02 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euxo pipefail
|
|
|
|
nixos-rebuild --flake .#{{machine}} --log-format internal-json build |& nom --json
|
|
|
|
|
|
|
|
pkg name:
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euxo pipefail
|
|
|
|
nix build --log-format internal-json -v .#{{name}} |& nom --json
|
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:
|
2024-03-14 09:24:40 +01:00
|
|
|
colmena apply --on {{host}}
|
|
|
|
|
|
|
|
[confirm]
|
|
|
|
cold-deploy host:
|
|
|
|
colmena apply --on {{host}} --reboot
|