Skip to content

warnUndeclaredOptions warns about packageOverrides #330627

@MrQubo

Description

@MrQubo

Describe the bug

A clear and concise description of what the bug is.

Steps To Reproduce

  1. Add nixpkgs.config.warnUndeclaredOptions = true; to nixos config;
  2. Add nixpkgs.config.packageOverrides = pkgs: {}; to nixos config;
  3. nixos-rebuild build

Output: trace: warning: undeclared Nixpkgs option set: config.packageOverrides

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.32-hardened1, NixOS, 24.05 (Uakari), 24.05.3164.63d37ccd2d17`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(nix): `""`
 - channels(root): `"home-manager-24.05.tar.gz, nixos-24.05, nixos-hardware, nixos-unstable, nur"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions