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

Installation gotcha... /etc/nix/nix.conf #458

Open
dfee opened this issue Apr 25, 2022 · 1 comment
Open

Installation gotcha... /etc/nix/nix.conf #458

dfee opened this issue Apr 25, 2022 · 1 comment

Comments

@dfee
Copy link

dfee commented Apr 25, 2022

I've installed nix on 3 computers (2 Intel and 1 ARM MBP). Each time I've run into an installation error because /etc/nix/nix.conf exists with the following contents from my installation of nix:

build-users-group = nixbld

the error i get (when running the installer)...

setting up /etc...
error: not linking environment.etc."nix/nix.conf" because /etc/nix/nix.conf already exists, skipping...
existing file has unknown content ff08c12813680da98c4240328f828647b67a65ba7aa89c022bd8072cba862cf1, move and activate again to apply

moving /etc/nix/nix.conf to /etc/nix/nix.conf.bkup, and I get a successful installation, with the following contents in /etc/nix/nix.conf:

# WARNING: this file is generated from the nix.* options in
# your NixOS configuration, typically
# /etc/nixos/configuration.nix.  Do not edit it!
build-users-group = nixbld

max-jobs = auto
cores = 0
sandbox = false

substituters = https://cache.nixos.org/
trusted-substituters = 
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
require-sigs = true
trusted-users = root
allowed-users = *

@lockejan
Copy link
Contributor

duplicate of #149

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

2 participants