reduce log spam of accept-flake-config #682

Open
opened 2025-02-18 14:48:49 +00:00 by isabelroses · 1 comment
Member

Its not a big deal but it gets a bit annoying 😅

Currently my nix.conf has accept-flake-config = false. Not to accept-flake-config = ask which to me means that I would not get warnings like so:

warning: ignoring untrusted flake configuration setting 'extra-substituters', pass '--accept-flake-config' to trust it (may allow the flake to gain root, see the nix.conf manual page)
warning: ignoring untrusted flake configuration setting 'extra-trusted-public-keys', pass '--accept-flake-config' to trust it (may allow the flake to gain root, see the nix.conf manual page)

Describe the solution you'd like

If accept-flake-config is false don't inform me that the settings are being rejected.

Describe alternatives you've considered

I know it can be useful though after a while of not looking at your nix.conf however. So maybe accept-flake-log-level or log-level or something similar.

## Is your feature request related to a problem? Please describe. Its not a big deal but it gets a bit annoying 😅 Currently my nix.conf has `accept-flake-config = false`. Not to `accept-flake-config = ask` which to me means that I would not get warnings like so: ```console warning: ignoring untrusted flake configuration setting 'extra-substituters', pass '--accept-flake-config' to trust it (may allow the flake to gain root, see the nix.conf manual page) warning: ignoring untrusted flake configuration setting 'extra-trusted-public-keys', pass '--accept-flake-config' to trust it (may allow the flake to gain root, see the nix.conf manual page) ``` ## Describe the solution you'd like If `accept-flake-config` is false don't inform me that the settings are being rejected. ## Describe alternatives you've considered I know it can be useful though after a while of not looking at your `nix.conf` however. So maybe `accept-flake-log-level` or `log-level` or something similar.
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/2921 ("libexpr/flake-config: collect untrusted settings into one prompt")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/2921", "number": 2921, "kind": "commit message"}], "cl_meta": {"2921": {"change_title": "libexpr/flake-config: collect untrusted settings into one prompt"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/2921](https://gerrit.lix.systems/c/lix/+/2921) ("libexpr/flake-config: collect untrusted settings into one prompt")
Sign in to join this conversation.
No milestone
No project
No assignees
2 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#682
No description provided.