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

Can't select LLM provider on Home Manager (Nix) #24918

Closed
danielgafni opened this issue Feb 14, 2025 · 2 comments
Closed

Can't select LLM provider on Home Manager (Nix) #24918

danielgafni opened this issue Feb 14, 2025 · 2 comments

Comments

@danielgafni
Copy link

danielgafni commented Feb 14, 2025

Summary

Hi!

I have Zed installed with Home Manager. It's installed via Nix, so the Zed package (including the configuration file) is located in an immutable filesystem at /nix/store. This prevents Zed from writing some internal files while configuring the LLM provider:

2025-02-15T00:58:53.696861909+02:00 [ERROR] Failed to write settings to file "/nix/store/1y8xzd5d62cir6766sw2rnh905sakxfx-zed-user-settings"

Caused by:
    Read-only file system (os error 30) at path "/nix/store/.tmpXiiuio"

Steps to trigger the problem:

  1. Install Zed with Nix: nix-shell -p zed
  2. Run zed and try to select an LLM provider
  3. Check the error log

I suggest using an alternative location for storing this internal information. It could be /tmp, or $XDG_CACHE_HOME, or something else which you consider reasonable. Alternatively, provide configuration options to change this behavior.

Thanks!

Zed Version and System Specs

Zed: v0.172.0 (Zed Dev)
OS: Linux Wayland nixos 25.05
Memory: 31.3 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 2080 SUPER || NVIDIA || 550.142

@devzeth
Copy link
Member

devzeth commented Feb 14, 2025

Look similar to #24537

@danielgafni
Copy link
Author

Indeed

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

2 participants