2023-06-28 20:48:01 +00:00
|
|
|
[private]
|
|
|
|
default:
|
|
|
|
@just --choose
|
|
|
|
|
|
|
|
[private]
|
|
|
|
rebuild *args:
|
|
|
|
@git add .
|
|
|
|
@sudo nixos-rebuild --flake . {{args}}
|
|
|
|
|
|
|
|
# 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-12-29 16:49:22 +00:00
|
|
|
# Rebuild the current machine for next boot
|
|
|
|
boot *args:
|
|
|
|
@just rebuild boot {{args}}
|
|
|
|
|
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}}
|