28 lines
470 B
Plaintext
28 lines
470 B
Plaintext
[private]
|
|
default:
|
|
@just --choose
|
|
|
|
[private]
|
|
rebuild *args:
|
|
@touch .dirty
|
|
@git add .
|
|
@sudo nixos-rebuild --flake . {{args}}
|
|
@git rm -f .dirty
|
|
|
|
# Rebuild the current machine
|
|
switch *args:
|
|
@just rebuild switch {{args}}
|
|
|
|
# Run colmena for remote deploy
|
|
colmena node:
|
|
@git add .
|
|
@nix run nixpkgs#colmena -- apply --on {{node}}
|
|
|
|
# Update the flake
|
|
update-flake:
|
|
@nix flake update
|
|
|
|
# Update an individual input
|
|
update input:
|
|
@nix flake lock --update-input {{input}}
|