1
0
Fork 0
This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues/pull-requests.
dotnix-archive/justfile

32 lines
556 B
Plaintext
Raw Permalink Normal View History

2023-06-28 20:48:01 +00:00
[private]
default:
@just --choose
[private]
rebuild *args:
@touch .dirty
2023-06-28 20:48:01 +00:00
@git add .
@sudo nixos-rebuild --flake . {{args}}
@git rm -f .dirty
2023-06-28 20:48:01 +00:00
# Rebuild the current machine
switch *args:
@just rebuild switch {{args}}
2023-06-28 20:48:01 +00:00
# Rebuild the current machine for next boot
boot *args:
@just rebuild boot {{args}}
# Run colmena for remote deploy
colmena node:
@git add .
@nix run nixpkgs#colmena -- apply --on {{node}}
2023-06-28 20:48:01 +00:00
# Update the flake
update-flake:
2023-06-28 20:48:01 +00:00
@nix flake update
# Update an individual input
update input:
@nix flake lock --update-input {{input}}