add github token

This commit is contained in:
Elijah McMorris 2025-08-06 00:26:05 -07:00
parent 660f180b86
commit e1f5467536
Signed by: NexVeridian
SSH key fingerprint: SHA256:bsA1SKZxuEcEVHAy3gY1HUeM5ykRJl0U0kQHQn0hMg8
3 changed files with 19 additions and 14 deletions

View file

@ -1,8 +1,9 @@
switch attic="false":
#!/usr/bin/env bash
nix-channel --update
nix flake update --flake ./nix/.
sudo darwin-rebuild switch --verbose --flake ./nix/.
nix-channel --update --option access-tokens "github.com=$(gh auth token)"
# https://github.com/NixOS/nix/issues/4653
nix flake update --flake ./nix/. --option access-tokens "github.com=$(gh auth token)"
sudo darwin-rebuild switch --verbose --flake ./nix/. --option access-tokens "github.com=$(gh auth token)"
if [ "{{attic}}" = "true" ]; then
just attic
just clean
@ -10,8 +11,8 @@ switch attic="false":
update attic="false":
#!/usr/bin/env bash
nix-channel --update
sudo darwin-rebuild switch --verbose --flake ./nix/.
nix-channel --update --option access-tokens "github.com=$(gh auth token)"
sudo darwin-rebuild switch --verbose --flake ./nix/. --option access-tokens "github.com=$(gh auth token)"
if [ "{{attic}}" = "true" ]; then
just attic
just clean
@ -51,7 +52,6 @@ dot:
zed ~/.zshrc
zed ~/.bashrc
# https://github.com/NixOS/nix/issues/8254#issuecomment-1787238439
# https://github.com/NixOS/nix/issues/4653
zed ~/.config/nix/nix.conf
zed ~/.gitconfig
zed ~/.config/jj/config.toml
@ -84,3 +84,8 @@ docker:
docker system prune -f -a
# docker run --rm --privileged -d --name buildkit moby/buildkit
git_upstream:
git remote add upstream git@github.com:loco-rs/loco-openapi-Initializer.git
git remote set-branches upstream main
git fetch upstream main