From ee67bdd9fd4817f5b5c2a973342f21c0bc480919 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 20 May 2026 13:56:11 +0100 Subject: justfile: add nix-update recipe, wire into update Refreshes flake.lock (nixpkgs + home-manager) and re-activates the profile. Plugged into the existing 'just update' aggregate so a weekly 'just update' bumps pacman/AUR + flatpak + nix in one go. --- justfile | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index bdea26b..675520d 100644 --- a/justfile +++ b/justfile @@ -47,13 +47,26 @@ nix-switch: # Updates # ═══════════════════════════════════════════════════════════════════ -# Update everything: system packages, Neovim plugins, flatpaks -update: pkg-update flatpak-update +# Update everything: system packages, flatpaks, nix flake inputs +update: pkg-update flatpak-update nix-update # Upgrade all system + AUR packages pkg-update: paru -Syu +# Refresh nix flake inputs (nixpkgs, home-manager) then re-activate the profile. +# Run after this to pick up newer versions of nix-managed tools. +nix-update: + #!/bin/sh + set -eu + if ! command -v nix >/dev/null 2>&1; then + echo "nix not installed; skipping flake update" >&2 + exit 0 + fi + nix --extra-experimental-features 'nix-command flakes' \ + flake update --flake "{{ justfile_directory() }}/nix" + just nix-switch + # Update all user-scope flatpaks (Flathub apps + URL bundles when their version changes) flatpak-update: #!/bin/sh -- cgit v1.3.1