Skip to content

nixos/cups-pdf: fix settings type#438619

Merged
MattSturgeon merged 1 commit intoNixOS:masterfrom
eclairevoyant:cups-pdf-module-fix
Aug 30, 2025
Merged

nixos/cups-pdf: fix settings type#438619
MattSturgeon merged 1 commit intoNixOS:masterfrom
eclairevoyant:cups-pdf-module-fix

Conversation

@eclairevoyant
Copy link
Contributor

@eclairevoyant eclairevoyant commented Aug 30, 2025

Things done

fixes #438459

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@eclairevoyant
Copy link
Contributor Author

@ofborg test cups-pdf

@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 Aug 30, 2025
Copy link
Contributor

@Yarny0 Yarny0 left a comment

Choose a reason for hiding this comment

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

While I don't really understand the freeform system, from looking at https://github.com/NixOS/nixpkgs/blob/dfb2f12e899db4876308eba6d93455ab7da304cd/nixos/doc/manual/development/freeform-modules.section.md , you're right that there is an attrsOf missing here.

This works fine -- nixosTests.cups-pdf passes as is, as well as with the diff from #438459 (comment) applied (tested after cherry-picking the commit onto current nixos-unstable).

@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 Aug 30, 2025
@MattSturgeon
Copy link
Contributor

While I don't really understand the freeform system, from looking at dfb2f12/nixos/doc/manual/development/freeform-modules.section.md , you're right that there is an attrsOf missing here.

Yes, "freeform" types must always be an attrs type (either attrsOf or lazyAttrsOf should be fine, IIRC). That's because a submodule is itself another module eval, so its resulting config must be an attrset.

@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Aug 30, 2025
@MattSturgeon MattSturgeon merged commit 56e0275 into NixOS:master Aug 30, 2025
37 of 43 checks passed
@eclairevoyant eclairevoyant deleted the cups-pdf-module-fix branch August 30, 2025 14:38
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/` 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: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nixos/cups-pdf: funny module system eval error

3 participants