From eda4821d07b281d97ff7a9cffb8039f13bc86f44 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 10 Aug 2024 17:00:17 +0200 Subject: [PATCH] just inspect --- justfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/justfile b/justfile index 57a600a..8175626 100644 --- a/justfile +++ b/justfile @@ -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..."