2023-06-28 20:48:01 +00:00
|
|
|
[private]
|
|
|
|
default:
|
|
|
|
@just --choose
|
|
|
|
|
|
|
|
[private]
|
|
|
|
rebuild *args:
|
2023-09-26 02:27:00 +00:00
|
|
|
@touch .dirty
|
2023-06-28 20:48:01 +00:00
|
|
|
@git add .
|
|
|
|
@sudo nixos-rebuild --flake . {{args}}
|
2023-09-26 02:27:00 +00:00
|
|
|
@git rm -f .dirty
|
2023-06-28 20:48:01 +00:00
|
|
|
|
|
|
|
# Rebuild the current machine
|
2023-07-05 20:51:53 +00:00
|
|
|
switch *args:
|
|
|
|
@just rebuild switch {{args}}
|
2023-06-28 20:48:01 +00:00
|
|
|
|
2023-10-18 04:54:24 +00:00
|
|
|
# Run colmena for remote deploy
|
|
|
|
colmena node:
|
2023-11-05 01:53:56 +00:00
|
|
|
@git add .
|
2023-10-18 04:54:24 +00:00
|
|
|
@nix run nixpkgs#colmena -- apply --on {{node}}
|
|
|
|
|
2023-06-28 20:48:01 +00:00
|
|
|
# Update the flake
|
2023-08-10 01:27:50 +00:00
|
|
|
update-flake:
|
2023-06-28 20:48:01 +00:00
|
|
|
@nix flake update
|
2023-08-10 01:27:50 +00:00
|
|
|
|
|
|
|
# Update an individual input
|
|
|
|
update input:
|
2023-08-13 00:17:50 +00:00
|
|
|
@nix flake lock --update-input {{input}}
|