nix-eval-jobs unknown settings warnings (fixed upstream) #1108

Open
opened 2026-01-27 01:18:33 +00:00 by alfarelcynthesis · 2 comments

Describe the bug

When running nix-eval-jobs with a configuration with allowed-users and/or trusted-users set to any value, it will spit out warnings:

warning: unknown setting 'allowed-users'
warning: unknown setting 'trusted-users'

This is fixed (hacked around) by this PR upstream, but not in a release yet, and this is the upstream issue.
Not sure if that's the best way to fix this, of course.

It would be nice if this or some fix like this was applied to the lix version of nix-eval-jobs.

Steps To Reproduce

  1. Get nix-eval-jobs (from lixPackageSets or from lix main).
  2. Run it on some attrset.
  3. Warnings are produced, poluting output.
  4. (It still works fine, and the warnings can by omitted with 2> >(rg -v "unknown setting \'(allowed|trusted)-users" > /dev/null))

Expected behavior

Ideally, valid settings would not print warnings.

nix --version output

nix (Lix, like Nix) 2.95.0
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux, x86_64-v4-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/alfarel/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/alfarel/.nix-profile/etc/xdg/nix/nix.conf:/home/alfarel/.local/state/nix/profile/etc/xdg/nix/nix.conf:/home/alfarel/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/alfarel/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/ak6zh6c0jw3wb5h162zi9y1yg8pj04fi-lix-2.95.0/share
``
## Describe the bug When running `nix-eval-jobs` with a configuration with `allowed-users` and/or `trusted-users` set to any value, it will spit out warnings: ``` warning: unknown setting 'allowed-users' warning: unknown setting 'trusted-users' ``` This is fixed (hacked around) by [this PR](https://github.com/NixOS/nix-eval-jobs/pull/398) upstream, but not in a release yet, and this is the upstream [issue](https://github.com/NixOS/nix-eval-jobs/issues/350). Not sure if that's the best way to fix this, of course. It would be nice if this or some fix like this was applied to the lix version of nix-eval-jobs. ## Steps To Reproduce 1. Get `nix-eval-jobs` (from `lixPackageSets` or from `lix` main). 2. Run it on some attrset. 3. Warnings are produced, poluting output. 4. (It still works fine, and the warnings can by omitted with `2> >(rg -v "unknown setting \'(allowed|trusted)-users" > /dev/null)`) ## Expected behavior Ideally, valid settings would not print warnings. ## `nix --version` output ``` nix (Lix, like Nix) 2.95.0 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux, x86_64-v4-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/alfarel/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/alfarel/.nix-profile/etc/xdg/nix/nix.conf:/home/alfarel/.local/state/nix/profile/etc/xdg/nix/nix.conf:/home/alfarel/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/alfarel/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/ak6zh6c0jw3wb5h162zi9y1yg8pj04fi-lix-2.95.0/share ``
Owner

@ma27 can you take a look and advise/port if this makes sense? Thanks!

@ma27 can you take a look and advise/port if this makes sense? Thanks!
Member

@raito how dumb would it be to just add the settings globally? AFAIU this (i.e. config initialization) happens during initNix(); when using the C++ API, so not only n-e-j, but also every Hydra component is affected.

@raito how dumb would it be to just add the settings globally? AFAIU this (i.e. config initialization) happens during `initNix();` when using the C++ API, so not only n-e-j, but also every Hydra component is affected.
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix#1108
No description provided.