-
Notifications
You must be signed in to change notification settings - Fork 407
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
Unclear Step 1 documentation for installer #986
Comments
BTW, I was able to follow https://nixcademy.com/2024/01/15/nix-on-macos/ and run
without obvious error, but could not find The following is the content of my current
I can see it's now a symlink to a file in
Previously, I would occasionally hand edit How do I reverse the effects/changes applied by |
Did you restart your shell? |
For some time after switching away from the 10.x numbering scheme, some system APIs would still return OS versions in that format for compatibility reasons, so that's not an issue.
This is correct. Instead of editing it by hand, you would configure it with the nix.settings = {
auto-optimise-store = true;
experimental-features =
[ "ca-derivations" "flakes" "nix-command" "repl-flake" ];
keep-derivations = true;
keep-outputs = true;
substituters = [ "https://cache.garnix.io" ];
trusted-public-keys =
[ "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" ];
}; which translates into this
|
No. I realized I should have tried opening a new shell. I saw the following in the store:
|
Thank you for the confirmation and the reference configuration. |
Is there anything else we can help with here? I’d like the documentation to be approachable and address anything confusing in it. Unfortunately we’re probably not equipped to explain the flakes feature from scratch, but maybe we could introduce them a little, link to a general tutorial (although we’d need to decide which), and more clearly separate out the choice of flake vs. non‐flake configuration? It’d be useful to know what would have helped point you in the right direction as a beginner. |
I figured this out by running the following:
and it finished a lot quicker. |
At least explain this a bit. I thought "are they referring to the same file there?". With
in that section, I assumed
Is this second Maybe provide a basic/working |
I appreciate the feedback, thank you! I’ll try and take a look at how we can make the documentation more clear here soon if someone else doesn’t beat me to it. |
I am rather new to Nix and evaluating nix as a replacement for Homebrew. I have nix installed on my macOS and wanted to try
nix-darwin
.I first followed https://davi.sh/til/nix/nix-macos-setup/ for setting up
nix-darwin
. It refers to./configuration.nix
in~/.config/nix/flake.nix
, but I have no idea what is supposed to be inconfiguration.nix
Then I found https://daiderd.com/nix-darwin/ and the steps described there to install
nix-darwin
is the same as theREADME.md
here. At https://github.com/LnL7/nix-darwin/blob/master/README.md?plain=1#L82 it is unclear what is the relationship betweenconfiguration.nix
andflake.nix
in Step 1.And in the file
./result/bin/darwin-installer
downloaded by https://github.com/LnL7/nix-darwin/blob/master/README.md?plain=1#L19 I could see it will installed something in$HOME/.nixpkgs
List of config files I have edited on my system:
/etc/nix/nix.conf
~/.config/nix/nix.conf
My current system environment:
I believe
nix-info
reported wrong macOS version, it should bemacOS 11.7.8 (20G1351)
.PS: I like the approach of using XDG_BASE_DIR standard for
nix
, as I have other Linux hosts that I may want to transition to NixOS in the future.-- Fonzie
The text was updated successfully, but these errors were encountered: