Skip to content

Fix freeform usages in some modules#440462

Merged
Lassulus merged 4 commits intoNixOS:masterfrom
hsjobeki:fix-freeform-usage
Sep 15, 2025
Merged

Fix freeform usages in some modules#440462
Lassulus merged 4 commits intoNixOS:masterfrom
hsjobeki:fix-freeform-usage

Conversation

@hsjobeki
Copy link
Contributor

@hsjobeki hsjobeki commented Sep 5, 2025

This PR fixes a bunch of modules.

freeformType needs to be an attrsOf type. Otherwise its behavior is bugged, and can lead to weird bugs, depending on the used type.

There are still many more modules that use freeformType wrongly. I would appreciate help on migrating them.

Things done

  • 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/` 6.topic: hardware Drivers, Firmware and Kernels labels Sep 5, 2025
Copy link
Member

@Svenum Svenum left a comment

Choose a reason for hiding this comment

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

Lgtm

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Sep 14, 2025
@Lassulus Lassulus added this pull request to the merge queue Sep 15, 2025
@Lassulus
Copy link
Member

@hsjobeki told me that it should be correct (in theory)

Merged via the queue into NixOS:master with commit 70e8ec4 Sep 15, 2025
30 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: hardware Drivers, Firmware and Kernels 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