mirror of https://git.jolheiser.com/dotnix.git
36 lines
605 B
Plaintext
36 lines
605 B
Plaintext
[private]
|
|
default:
|
|
@just --choose
|
|
|
|
[private]
|
|
rebuild *args:
|
|
@git add .
|
|
@sudo nixos-rebuild --flake . {{args}}
|
|
|
|
# Rebuild the current machine
|
|
switch *args:
|
|
@just rebuild switch {{args}}
|
|
|
|
hm:
|
|
@home-manager switch --flake .
|
|
|
|
work:
|
|
@home-manager switch --flake '.#work'
|
|
|
|
# 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}}
|
|
|
|
# Update the flake
|
|
update-flake:
|
|
@nix flake update
|
|
|
|
# Update an individual input
|
|
update input:
|
|
@nix flake lock --update-input {{input}}
|