just inspect

This commit is contained in:
Peder Bergebakken Sundt 2024-08-10 17:00:17 +02:00
parent 9c44d3ebf3
commit eda4821d07

View File

@ -37,6 +37,9 @@ push hostname=`just _a_host` cmd=`gum choose test switch boot --header "Select m
@echo pushing...
NIX_NO_NOM=1 NIX_SSHOPTS="-tt" nixos-rebuild {{cmd}} --flake .#{{hostname}} --use-remote-sudo --target-host $(nix eval .#nixosReports.{{hostname}}.fqdn --json | jq . -r) --use-substitutes
inspect:
nix run -- nixpkgs#nix-inspect -p .
@_a_host:
nix eval .#nixosConfigurations --apply builtins.attrNames --json 2>/dev/null | jq '.[]' -r | gum filter --placeholder "Pick a host..."