justfile: selective update

This commit is contained in:
Peder Bergebakken Sundt 2024-08-16 00:41:59 +02:00
parent a576db63d1
commit 44f140e63c
1 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,14 @@ update:
@mkdir -p .direnv/ @mkdir -p .direnv/
@echo "$(date +%Y-%m-%d)" > .direnv/pull-date @echo "$(date +%Y-%m-%d)" > .direnv/pull-date
@update-select:
git reset flake.lock
git restore flake.lock
nix eval .#inputs --apply builtins.attrNames --json \
| jq '.[]' -r \
| gum choose --no-limit --height=15 \
| xargs nix flake update --commit-lock-file
build: build:
nixos-rebuild build --accept-flake-config --show-trace --flake . nixos-rebuild build --accept-flake-config --show-trace --flake .