Launching shell from repl emits strange errors #811

Closed
opened 2025-04-28 11:03:02 +00:00 by schuelermine · 2 comments

Describe the bug

Using :sh in nix repl causes messages of the form “warning: Ignoring the client-specified setting '<something>', because it is a restricted setting and you are not a trusted user” to appear

Steps To Reproduce

  1. Start nix repl

  2. Get an expression for a derivation

  3. Type :sh <expression> to launch a nix-shell

  4. You get this error:

    Click to expand error
    warning: Ignoring the client-specified setting 'allow-symlinked-store', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'allowed-impure-host-deps', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'always-allow-substitutes', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'auto-allocate-uids', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'auto-optimise-store', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'build-dir', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'build-hook', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'build-users-group', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'builders-use-substitutes', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'compress-build-log', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'diff-hook', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'download-attempts', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'download-speed', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'enable-core-dumps', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'extra-platforms', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'fsync-metadata', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'gc-reserved-space', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'hashed-mirrors', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'http-connections', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'http2', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'id-count', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'ignored-acls', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'impersonate-linux-26', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'keep-build-log', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'keep-derivations', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'keep-env-derivations', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'keep-outputs', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'log-lines', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'max-build-log-size', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'max-free', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'max-substitution-jobs', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'min-free', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'min-free-check-interval', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'nar-buffer-size', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'narinfo-cache-negative-ttl', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'narinfo-cache-positive-ttl', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'netrc-file', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'post-build-hook', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'pre-build-hook', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'print-missing', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'require-drop-supplementary-groups', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'require-sigs', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'run-diff-hook', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'sandbox', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'sandbox-build-dir', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'sandbox-dev-shm-size', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'sandbox-fallback', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'sandbox-paths', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'secret-key-files', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'ssl-cert-file', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'stalled-download-timeout', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'start-id', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'store', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'sync-before-registering', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'system', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'system-features', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'tarball-ttl', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'trusted-public-keys', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'trusted-substituters', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'use-cgroups', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'use-sqlite-wal', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'use-xdg-base-directories', because it is a restricted setting and you are not a trusted user
    warning: Ignoring the client-specified setting 'user-agent-suffix', because it is a restricted setting and you are not a trusted user
    

Expected behavior

No errors

nix --version output

nix (Lix, like Nix) 2.91.1
## Describe the bug Using `:sh` in `nix repl` causes messages of the form “warning: Ignoring the client-specified setting '\<something\>', because it is a restricted setting and you are not a trusted user” to appear ## Steps To Reproduce 1. Start `nix repl` 2. Get an expression for a derivation 3. Type `:sh <expression>` to launch a `nix-shell` 4. You get this error: <details> <summary> Click to expand error </summary> ``` warning: Ignoring the client-specified setting 'allow-symlinked-store', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'allowed-impure-host-deps', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'always-allow-substitutes', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'auto-allocate-uids', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'auto-optimise-store', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'build-dir', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'build-hook', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'build-users-group', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'builders-use-substitutes', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'compress-build-log', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'diff-hook', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'download-attempts', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'download-speed', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'enable-core-dumps', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'extra-platforms', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'fsync-metadata', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'gc-reserved-space', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'hashed-mirrors', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'http-connections', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'http2', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'id-count', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'ignored-acls', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'impersonate-linux-26', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'keep-build-log', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'keep-derivations', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'keep-env-derivations', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'keep-outputs', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'log-lines', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'max-build-log-size', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'max-free', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'max-substitution-jobs', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'min-free', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'min-free-check-interval', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'nar-buffer-size', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'narinfo-cache-negative-ttl', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'narinfo-cache-positive-ttl', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'netrc-file', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'post-build-hook', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'pre-build-hook', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'print-missing', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'require-drop-supplementary-groups', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'require-sigs', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'run-diff-hook', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'sandbox', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'sandbox-build-dir', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'sandbox-dev-shm-size', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'sandbox-fallback', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'sandbox-paths', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'secret-key-files', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'ssl-cert-file', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'stalled-download-timeout', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'start-id', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'store', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'sync-before-registering', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'system', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'system-features', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'tarball-ttl', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'trusted-public-keys', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'trusted-substituters', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'use-cgroups', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'use-sqlite-wal', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'use-xdg-base-directories', because it is a restricted setting and you are not a trusted user warning: Ignoring the client-specified setting 'user-agent-suffix', because it is a restricted setting and you are not a trusted user ``` </details> ## Expected behavior No errors ## `nix --version` output ``` nix (Lix, like Nix) 2.91.1 ```
pennae added this to the 2.93 milestone 2025-04-28 11:11:45 +00:00
Owner

@alois31 🫠

@alois31 🫠
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/3065 ("repl: only send overridden settings to nix subprocesses")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/3065", "number": 3065, "kind": "commit message"}], "cl_meta": {"3065": {"change_title": "repl: only send overridden settings to nix subprocesses"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/3065](https://gerrit.lix.systems/c/lix/+/3065) ("repl: only send overridden settings to nix subprocesses")
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#811
No description provided.