Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attic use on nixos β†’ Error: Read-only file system #222

Open
tennox opened this issue Jan 18, 2025 · 0 comments
Open

attic use on nixos β†’ Error: Read-only file system #222

tennox opened this issue Jan 18, 2025 · 0 comments

Comments

@tennox
Copy link
Contributor

tennox commented Jan 18, 2025

Hey there :)
Thanks for this awesome tool! 😍 Looking forward to integrating it into many of my workflows πŸ€“

One problem:
When I want to enable a cache on nixos:

❯ attic use foo:foo
Configuring Nix to use "foo" on "foo":
+ Substituter: https://attic.foo.org/foo
+ Trusted Public Key: foo:MGoMMZT...I=
+ Access Token
Error: Read-only file system (os error 30)

1. better error

It's clear that on NixOS, writing to config files could fail in this way - but which file?

2. how to do it on NixOS?

Is there an easy way to ad-hoc add substituter config without needing to write to ~/.config/nix/nix.conf ?
Otherwise, printing config contents and asking the user to do it manually would be my next best idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant