Skip to content

nixpkgs.config.permittedInsecurePackages cannot be set in multiple files at the same time #356739

@huskyistaken

Description

@huskyistaken

Describe the bug

As title says, when a nixos configuration is defined through a flake if nixpkgs.config.permittedInsecurePackages is specified in multiple files the values will not be merged, only the first will be used.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Create a flake with a nixos configuration
  2. Include two modules which both define a value for permittedInsecurePackages
  3. Check that only the first one is applied

I made an example repo with a minimal flake to reproduce.

Expected behavior

If this is intended behavior a warning should be printed, otherwise the values in all files should be merged.

Screenshots

Screenshot from 2024-11-17 16-47-17

Metadata

  • system: "x86_64-linux"
  • host os: Linux 6.6.54, NixOS, 24.05 (Uakari), 24.05.20241007.1bfbbbe
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Lix, like Nix) 2.91.0 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/husky/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/husky/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/husky/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/husky/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf:/nix/store/jwpaz9v4rbifn6ydy0d8ka1rkid1yibc-gnome-settings-daemon-46.0/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/lyh0wy4mxmblg3s2isf180qx3wx64mz1-lix-2.91.0/share
  • channels(root): "nixos-23.05, nixos-unstable"
  • nixpkgs: /nix/store/a2gnsay8asfn2kqghz12nhw196cnmf8h-source

Notify maintainers

@NixOS/stdenv


Note for maintainers: Please tag this issue in your PR.


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