Skip to content

nixos/vector: add option to disable the configuration validation#425119

Merged
adamcstephens merged 1 commit intoNixOS:masterfrom
weriomat:vector
Jul 22, 2025
Merged

nixos/vector: add option to disable the configuration validation#425119
adamcstephens merged 1 commit intoNixOS:masterfrom
weriomat:vector

Conversation

@weriomat
Copy link
Contributor

Currently, during built time the configuration gets checked by vector. This can be a problem if environment
variables
are interpolated into the configuration. In this case the validation can be disabled. This came up in trying to find a solution for #377889.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Nixpkgs 25.11 Release Notes (or backporting 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 25.05 NixOS Release notes)
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other contributing documentation in corresponding paths.

Add a 👍 reaction to pull requests you find important.

Currently, during built time the configuration gets checked by vector.
This can be a problem if [environment
variables](https://vector.dev/docs/reference/environment_variables/) are
interpolated into the configuration. In this case the validation can be
disabled. This came up in trying to find a solution for
[NixOS#377889](NixOS#377889).
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Jul 14, 2025
Copy link
Contributor

@adamcstephens adamcstephens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me. 👍

@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 1 This PR was reviewed and approved by one person. and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Jul 14, 2025
@adamcstephens adamcstephens merged commit 666cb22 into NixOS:master Jul 22, 2025
32 of 33 checks passed
@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Jul 22, 2025

Backport failed for release-25.05, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-25.05
git worktree add -d .worktree/backport-425119-to-release-25.05 origin/release-25.05
cd .worktree/backport-425119-to-release-25.05
git switch --create backport-425119-to-release-25.05
git cherry-pick -x 6b4ce1ee231c408f467b3f3efd6c31533d483c44

@weriomat
Copy link
Contributor Author

weriomat commented Jul 22, 2025

@adamcstephens It seems like 25a40ea did not get backported, thus this backport failed. How can I help?

@adamcstephens
Copy link
Contributor

We can either cherry pick as described above, and resolve the conflict, or we can backport both. The latter seems fine to me, but either way it'll need to be done manually.

@weriomat
Copy link
Contributor Author

Please excuse the delay, I have tried to do a manual backport in #428623. I hope I didn't miss something.

@mdaniels5757 mdaniels5757 added 8.has: port to stable This PR already has a backport to the stable release. and removed backport release-25.05 labels Jul 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants