dustinlyons / nixos-config

General purpose Nix configuration for macOS / NixOS with starter templates + step-by-step guides ✨
BSD 3-Clause "New" or "Revised" License
1.79k stars 113 forks source link

starter config appears to expect secrets repo #57

Closed TheKashe closed 8 months ago

TheKashe commented 9 months ago

I'm trying to setup starter without secrets, but

  1. apply asks for GitHub config anyways

  2. build fails with what appears to be secret repo failure (of course, it doesn't exist)

git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
warning: could not read HEAD ref from repo at 'ssh://git@github.com//.git', using 'master'
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
warning: could not update mtime for file '/Users/xxxx/.cache/nix/gitv3/1x7mdlzb2qbqf1vjp1i3w1vr6h3q3wa9q5b07jkbzrxi6rr0ymwk/refs/heads/master': No such file or directory
fatal: Refusing to point HEAD outside of refs/
warning: could not update cached head 'master' for 'ssh://git@github.com//.git'
error:
       … while updating the lock file of flake 'path:/Users/xxxx/nixos-config?lastModified=1708284621&narHash=sha256-pLfyOdF1o%2Bggv0sCGI6aioVu6gKbz%2B3Ql16ms%2BY8Lwg%3D'

       … while updating the flake input 'secrets'

       … while fetching the input 'git+ssh://git@github.com//.git'

       error: opening file '/Users/xxxx/.cache/nix/gitv3/1x7mdlzb2qbqf1vjp1i3w1vr6h3q3wa9q5b07jkbzrxi6rr0ymwk/refs/heads/master': No such file or directory
dustinlyons commented 9 months ago

Hi, thanks for reporting. You're one of the first testing the new x86_64 platform (just got merged a few days ago). I'll correct the scripts tomorrow and message back.

dustinlyons commented 9 months ago

Hi, I fixed this script but I don't have an Intel mac to test. It should work but there may be inconsistencies with Apple Silicon that I can't see. Would be great if you could run it and report back. @jspiers reported success on his machine.

dustinlyons commented 8 months ago

Closing this as the script is now fixed.