From a7f74c1fa4b89c5829f5896842eb7248c820704c Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Thu, 17 Sep 2026 15:05:36 +0100 Subject: Use GitHub credentials for Nix when available --- justfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'justfile') diff --git a/justfile b/justfile index 623f6c2..68a9b83 100644 --- a/justfile +++ b/justfile @@ -39,7 +39,8 @@ nix-switch: case "${ID:-}" in ubuntu|debian) profile=vm ;; esac - nix --extra-experimental-features 'nix-command flakes' \ + sh "{{ justfile_directory() }}/nix/with-github-auth.sh" \ + nix --extra-experimental-features 'nix-command flakes' \ run home-manager/master -- \ switch --impure --flake "{{ justfile_directory() }}/nix#${profile}" -b backup # Keep the login shell pointed at the Home-Manager-managed zsh. @@ -88,7 +89,8 @@ _nix-flake-update: echo "nix not installed; skipping flake update" >&2 exit 0 fi - nix --extra-experimental-features 'nix-command flakes' \ + sh "{{ justfile_directory() }}/nix/with-github-auth.sh" \ + nix --extra-experimental-features 'nix-command flakes' \ flake update --flake "{{ justfile_directory() }}/nix" # Update all user-scope flatpaks (Flathub apps + URL bundles when their version changes) -- cgit v1.3.1