Closed cideM closed 3 years ago
Okay this is likely not an issue with niv
. The same issue occurs if I replace a call to a sources.nix
file with just builtins.fetchGit
. I think this has to do with me running nix-repl
under my actual user account and nixos-rebuild
as sudo
. https://stackoverflow.com/questions/55425523/problem-with-nix-package-manager-and-gitlab
I'm using flakes and
I have sources such as
in my dotfiles and suddenly they all fail to fetch with a
Permission denied (publickey)
error. I can fetch them just fine in anix repl
using exactly the same parameters andbuiltins.fetchGit
. I can alsogit clone
these repositories. It's just the sources coming fromniv
that suddenly break. I have no idea why or how to debug this.I'm getting these errors when running
nixos-rebuild switch
on my NixOS machine. I also use home-manager and in there I use various sources managed throughniv
.The same sources work just fine on MacOS and Arch using
home-manager
andThen again it used to work with flakes before and
builtins.fetchGit
does work outside ofnixos-rebuild switch
. Lastly, the error happens even if I don't use flakes, but still runnixos-rebuild switch
Here's the full output