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

Neither of the settings from "Description" "Chapter 24. Files (...) nix.conf — Nix configuration file" hold #4253

Open
573 opened this issue Nov 13, 2020 · 5 comments

Comments

@573
Copy link

573 commented Nov 13, 2020

Describe the bug

Applying any of the settings from https://archive.vn/9SiO8#description-42 and restarting nix-daemon on a multi-user nix install (non-NixOS machine) leads to the same warnings:

warning: ignoring the user-specified setting 'trusted-users', because it is a restricted setting and you are not a trusted user

The only settings when ought to be effective have to go in the global /etc/nix/nix.conf file.

Example:
Edit: Using a simple example.
I want to build a derivation:

nix-build --no-out-link '<nixpkgs>' -A hello

Steps To Reproduce

My user is in group nix-users and I add trusted-users = @nix-users to ~/.config/nix/nix.conf while XDG_CONFIG_HOME is not set (NIX_CONF_DIR is also not set). Then I restart nix-daemon service.

Expected behavior

Example should build w/o warnings as my user actually should be trusted user according to manual.

nix-env --version output

nix-env (Nix) 2.3.8

Additional context

Add any other context about the problem here.

@573 573 added the bug label Nov 13, 2020
@573
Copy link
Author

573 commented Nov 13, 2020

Related: #3873

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/help-needed-with-nix-trusted-users-behaviour/8369/2

@stale
Copy link

stale bot commented Jun 2, 2021

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

@stale stale bot added the stale label Jun 2, 2021
@573
Copy link
Author

573 commented Jun 2, 2021

Still interested in this.

@stale stale bot removed the stale label Jun 2, 2021
@stale
Copy link

stale bot commented Jan 9, 2022

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

@stale stale bot added the stale label Jan 9, 2022
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