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

What is system.stateVersion in Nix? #1384

Open
phucleeuwu opened this issue Mar 12, 2025 · 0 comments
Open

What is system.stateVersion in Nix? #1384

phucleeuwu opened this issue Mar 12, 2025 · 0 comments

Comments

@phucleeuwu
Copy link

I'm trying to understand the purpose and implications of system.stateVersion in NixOS and Nix Darwin.

Questions:

  1. What exactly does system.stateVersion control?
  2. How does it affect system upgrades?
  3. What happens if I change it to a newer version?
  4. Is it safe to set it to the latest NixOS/Nix Darwin version when installing a fresh system?
  5. Does it impact package versions or just system-level configurations?

From my understanding, it determines compatibility with older versions of NixOS/Nix Darwin, but I’d like a deeper explanation of when and why it should or shouldn’t be modified.

Thanks in advance for any insights!

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