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

nix 2.4 install on macos 12.0.1 / Monterey - failing on place the default nix daemon configuration (part 2) #5675

Open
hans-d opened this issue Nov 27, 2021 · 3 comments

Comments

@hans-d
Copy link

hans-d commented Nov 27, 2021

Last parts of the output

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo HOME=/var/root /nix/store/c3mvzszvyzakvcp9spnjvsb8m2bpjk7m-nix-2.4/bin/nix-env -i /nix/store/wiqcjg66s7sb6cais8pifrk3l9cpkrmq-nss-cacert-3.66

to install a bootstrapping SSL certificate just for Nix in to the default profile

installing 'nss-cacert-3.66'
building '/nix/store/sfq4nhk3my358wizgsylmqpgjbcq08x6-user-environment.drv'...

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo HOME=/var/root NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt /nix/store/c3mvzszvyzakvcp9spnjvsb8m2bpjk7m-nix-2.4/bin/nix-channel --update nixpkgs

to update the default channel in the default profile

unpacking channels...

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo install -m 0664 /var/folders/ry/zchky0w14zs3g9lhn6w2qzq80000gn/T/tmp.zhPVFx7A2M/nix.conf /etc/nix/nix.conf

to place the default nix daemon configuration (part 2)

install: /etc/nix/nix.conf: No such file or directory

---- oh no! --------------------------------------------------------------------
Jeeze, something went wrong. If you can take all the output and open
an issue, we'd love to fix the problem so nobody else has this issue.
@hans-d hans-d added the bug label Nov 27, 2021
@abathur
Copy link
Member

abathur commented Nov 27, 2021

install: /etc/nix/nix.conf: No such file or directory probably means /etc/nix wasn't created at

_sudo "to place the default nix daemon configuration (part 1)" \
install -dv -m 0555 /etc/nix

Was there any weird output at that point? does the directory exist?

@hans-d
Copy link
Author

hans-d commented Nov 27, 2021

Seems there was a left over from a previous version. nix.conv was existing as symlink, but the target was non-existing.
After removing the files in /etc/nix/, it worked.

@stale
Copy link

stale bot commented Jul 11, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants