Skip to content

nixos/listmonk: fix db settings type#438700

Merged
Stunkymonkey merged 1 commit into
NixOS:masterfrom
eclairevoyant:listmonk-module-fix
Sep 2, 2025
Merged

nixos/listmonk: fix db settings type#438700
Stunkymonkey merged 1 commit into
NixOS:masterfrom
eclairevoyant:listmonk-module-fix

Conversation

@eclairevoyant

@eclairevoyant eclairevoyant commented Aug 30, 2025

Copy link
Copy Markdown
Contributor

Things done

see #438619, #438558 for context and a similar fix.

  • 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.

@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
@eclairevoyant

Copy link
Copy Markdown
Contributor Author

@MarcelCoding @Stunkymonkey might be interested to review?

@Stunkymonkey Stunkymonkey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i ran also nix-build . -A nixosTests.listmonk which was successful. so LGTM

@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 Sep 1, 2025

@MarcelCoding MarcelCoding left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry, can't realy help here. Migrated to mailman3 long time ago ;) Don't know the semantics of databaseSettingsOpts etc.

@eclairevoyant

Copy link
Copy Markdown
Contributor Author

Basically it was always a type error, because freeformType should always be attrsOf/lazyAttrsOf something, as a submodule with inner mkOptions is by nature returning an attrset.

Prior to some other module system changes, the module system was silently just dealing with the type mismatch by not-merging definitions; now it's an actual error. Hence end-users would encounter the error and be unable to eval their configs much less build them, without this fix.

I found a few dozen other similar cases, I'll try to do a treewide at some point...

@eclairevoyant

Copy link
Copy Markdown
Contributor Author

@ofborg test listmonk

@Stunkymonkey Stunkymonkey merged commit b272621 into NixOS:master Sep 2, 2025
38 of 42 checks passed
@eclairevoyant eclairevoyant deleted the listmonk-module-fix branch September 2, 2025 21:01
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: 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