-
-
Notifications
You must be signed in to change notification settings - Fork 264
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's the page for setting up a NixOS configuration.nix file? Flakes or no? Home manager? #665
Comments
Hey @willhansen, thanks a lot for the elaborate feedback. I fully appreciate your concern, and unfortunately things are as they are with official documentation: the documentation team simply didn't get to NixOS yet, and we have no one maintaining NixOS-specific documentation. Sorry that this reply amounts to "you're on your own for now". It's been that way for the past years in most areas of the Nix ecosystem, but at least these days we can say "we're working on it" - please have (lots of) patience and consider helping out. We currently focus on the reference manuals for Nix and Nixpkgs, and first steps with Nix using stable interfaces, mainly because after extensive consideration we concluded that getting the basics right will scale better in the long run. From that particular perspective, arguably NixOS can be considered an advanced use case, even if that's what most new users come for.
I'm curious how specifically you came to that conclusion. Third party documentation is full of such statements, but which resource convinced you of this? The @NixOS/documentation-team just recently merged a piece with our current consensus on flakes: https://nix.dev/recipes/faq#should-i-enable-flakes |
I was convinced to use flakes by a combination of wanting my configuration to be 100% declarative, which meant avoiding the |
Thank you for sharing. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-07-31-documentation-team-meeting-notes-68/31127/1 |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-08-03-documentation-team-meeting-notes-69/31263/1 |
Closing this since we had https://nix.dev/tutorials/nixos/nixos-configuration-on-vm for a while. More is envisioned: #738 #572 |
Observations
I've been getting into NixOS over the past week (big fan of declarative system configuration).
The latest hurdle I've run into is looking for a simple example of a system configuration based on flakes rather than channels.
So, let's say I've just installed nixos. Now I need a configuration to start building off of. How do I find this?
The path that I actually followed:
On the NixOS wiki (I know this repo doesn't control this. Bear with me). The discovery path is:
Then I learn that the main contact point for learning isn't even supposed to be the wiki. It's nix.dev.
The path that I officially "should have" followed:
The discovery path on nix.dev:
(Keep in mind I'm looking for a simple NixOS configuration.nix to base my configuration around)
Problem
Approaches
Willing to help?
Here's my config I've assembled over the past week.
flake.nix
This is symlinked to /etc/nixos/flake.nix
configuration.nix
flake.nix
.sudo nixos-rebuild switch
./hardware-configuration.nix
and./networking.nix
files were generated by nixos-infect. I do not understand them, so I did not include them.Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: