DeterminateSystems / fh

The official CLI for FlakeHub: search for flakes, and add new inputs to your Nix flake.
https://flakehub.com
Apache License 2.0
122 stars 8 forks source link

fh login crashes when attempting to update read-only ~/.config/nix/nix.conf #65

Closed flexiondotorg closed 1 year ago

flexiondotorg commented 1 year ago

My ~/.config/nix/nix.conf is managed via Home Manager and therefore read-only. While running fh login I answered "Yes" when asked if I wanted fh to update ~/.config/nix/nix.conf cause caused fh to crash.

May I add `netrc-file = /home/martin/.local/share/flakehub/netrc` to /home/martin/.config/nix/nix.conf? Yes

Error

Error: 
   0: Permission denied (os error 13)

Metadata

key value
version 0.1.6
os linux
arch x86_64
cole-h commented 1 year ago

https://github.com/DeterminateSystems/fh/pull/69 should fix this for you.