Justfile: add nix-diff recipe
This commit is contained in:
parent
a9aa0dff00
commit
f012eb6d2b
1 changed files with 4 additions and 0 deletions
|
|
@ -11,3 +11,7 @@ alias build := build-nixos
|
|||
# Build a NixOS configuration
|
||||
build-nixos host=`hostname`:
|
||||
nixos-rebuild build --flake .#{{host}}
|
||||
|
||||
# nix-diff with some parameters piped to less
|
||||
nix-diff left right:
|
||||
nix-diff --color=always --skip-already-compared {{left}} {{right}} | less -F
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue