From 34637e383af5a1c5a56002ab11b3b83993507da5 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sun, 4 Aug 2024 17:19:40 +0200 Subject: [PATCH] justfile: add update-inputs recipe --- justfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/justfile b/justfile index e5b0249..41dca72 100644 --- a/justfile +++ b/justfile @@ -10,5 +10,12 @@ check: build-machine machine=`just _a_machine`: {{nom}} build .#nixosConfigurations.{{ machine }}.config.system.build.toplevel +@update-inputs: + nix eval .#inputs --apply builtins.attrNames --json \ + | jq '.[]' -r \ + | gum choose --no-limit --height=15 \ + | xargs nix flake update --commit-lock-file + + _a_machine: nix eval .#nixosConfigurations --apply builtins.attrNames --json | jq .[] -r | gum filter