mirror of
https://github.com/davegallant/nix-config
synced 2025-08-05 10:33:39 +00:00
Move from make to just
This commit is contained in:
18
justfile
Normal file
18
justfile
Normal 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 .
|
Reference in New Issue
Block a user