-
Notifications
You must be signed in to change notification settings - Fork 408
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
New flake install instructions #740
Comments
The flake installation instructions say the following:
Could you suggest how we could make this more clear for beginners?
Are you using the Determinate Systems experimental nix-installer? That's not an officially-supported way to install Nix, and has some issues currently, although it's good software and we do try to support it. They tried avoiding user creation on macOS as an experiment, but it doesn't work properly and they disabled it. That was released as v0.10.0, so if you do a clean install with the same installer now you shouldn't have the same problem. We could disable the build users check unconditionally, but it may make things more brittle for people using the official installer or the latest version of Determinate Systems' unofficial one. |
Make the highlighting the same for the 'simple' and the change in architecture. I don"t have a large enough screen to have the instructions beside my editor so when I switched back my eyes were drawn to the highlighted issue. As for the nix-installer I seem tom have the broken version i reported on the bug. I just seem to have bad timing. |
Another way might be to number each substep - e.g. i) for the flake creation ii) for edit name then add not for architecture as step iii) |
As it is I now do have in a new VM a path of
But after a reboot - which I think is needed to create the /run entry
|
Are you sure the activation ran correctly? For instance was there an error about your |
Yes there was an errro about /.etc/nix and doing a clean install again and removing that with a rerun worked. The Deterministic Systems Installer added the /etc/nix so that gave me the issue but it is now working Sorry for the noise here. |
#731 should fix the partial activation and give a clearer error in that case. Will leave this open for the docs issue. |
I also installed nix using deterministic system's installer and it wrote
Is it safe to just remove them? I'm aware the last line will be generated by nix-darwin because it's configured in # Necessary for using flakes on this system.
nix.settings.experimental-features = "nix-command flakes"; But, shouldn't I also add configurations like this, so that the original behavior from installer is restored? nix.settings.build-users-group = "nixbld" |
@frencojobs build-users-group defaults to |
If you comes here from having a fresh > cd my-flake-directory
> nix --extra-experimental-features 'nix-command flakes' run nix-darwin -- switch --flake .#simple Unless you guys think it is pretty safe to assume that if someone is trying to do a flakes based system they would already know this. |
I've also installed Nix using the Determinate Systems installer. After initializing a nix-darwin flake using
Any advice on how to get EDIT: I think I ran into #122. I fixed this using the following workaround: #122 (comment) |
I installed nix using Determinate Systems' installer and then I installed nix-darwin. This is what Determinate Systems installed for
And this is what nix-darwin wrote for
The nix-darwin install succeeded but I was not able to install packages even with a plain I then added the following to nix-darwin's
Note that I also added the |
They don"t work.
The documentation needs to also say when editing flake.nix
Edit the two "simple" in the end of the file to the first part of the machine name (not including any .local or other domain) m
9OK mine now also fails due to lack of all the build users - but I think that is a bug #681 The default for new users should not need the extra line that is recommennded. Begginer documentation MUST be exact so the user can copy and paste the example and comments like edit this file and not good but can be dealt with but asking a begginner to set a variable does not work as where in the file does that edit get done.
And the response #681 (comment) looks like it is wrong to me as the steps listed here don"t work without the added line to suppress the check.
The text was updated successfully, but these errors were encountered: