Move from make to just

This commit is contained in:
Dave Gallant
2024-03-13 21:09:56 -04:00
parent 54618b8fd6
commit 3212a61ffb
6 changed files with 50 additions and 41 deletions

18
justfile Normal file
View File

@@ -0,0 +1,18 @@
set export
host := `hostname`
build-linux:
nixos-rebuild --use-remote-sudo -I nixos-config=machines/$host/configuration.nix switch --flake .
build-mac:
darwin-rebuild switch --flake .
rollback:
nixos-rebuild --use-remote-sudo switch --rollback -I nixos-config="machines/$host/configuration.nix"
update:
@./nix-flake-update.sh
fmt:
nixpkgs-fmt .