aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-20 13:56:11 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-20 13:56:11 +0100
commitee67bdd9fd4817f5b5c2a973342f21c0bc480919 (patch)
tree73387a242493eb3d7667764da2ae5f5963890de6
parenta30807262e2a6b79090d9f03cd4d7192eabf08e3 (diff)
downloaddotfiles-ee67bdd9fd4817f5b5c2a973342f21c0bc480919.tar.gz
dotfiles-ee67bdd9fd4817f5b5c2a973342f21c0bc480919.tar.bz2
dotfiles-ee67bdd9fd4817f5b5c2a973342f21c0bc480919.zip
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.
-rw-r--r--justfile17
1 files 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