Skip to content

modules/meta-maintainers: set option as internal - #482766

Closed
Malix-Labs wants to merge 1 commit into
NixOS:masterfrom
Malix-Labs:home-manager-fix
Closed

Malix-Labs wants to merge 1 commit into
NixOS:masterfrom
Malix-Labs:home-manager-fix

Conversation

@Malix-Labs

Copy link
Copy Markdown
Member

FIXES: nix-community/home-manager#7935

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.

@Malix-Labs

Copy link
Copy Markdown
Member Author

@rycee

@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: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Jan 22, 2026

@SigmaSquadron SigmaSquadron 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.

This is very clearly a home-manager bug that is also only encountered with a third-party distribution of Nix. There is no reason to alter Nixpkgs needlessly when the fix to that issue should be in home-manager's consumption of the maintainer module system or in their docs generator.

Additionally, please heed our Commit Conventions for future contributions to Nixpkgs.

@nixpkgs-ci nixpkgs-ci Bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Feb 4, 2026
@Malix-Labs

Malix-Labs commented Feb 4, 2026 •

Copy link
Copy Markdown
Member Author

@SigmaSquadron please see nix-community/home-manager#7935 (comment)

Also wouldn't it sementically make more sense anyway ?

About the commit convention, I thought I had followed them, what's wrong with my commit about it?

@SigmaSquadron

SigmaSquadron commented Feb 4, 2026 •

Copy link
Copy Markdown
Contributor

Also wouldn't it sementically make more sense anyway ?

I've blocked this because it seems like a patchwork fix when the root cause (docs generation/downstream module consumption) should be fixed instead. As for semantic sense, I'd leave it to @roberth as the generic modules maintainer.

About the commit convention, I thought I had followed them, what's wrong with my commit about it?

feat internal is meaningless. We don't use the Feat/Fix/Chore commit convention that is common in other development spaces. The use of meta without a path prefix is also inaccurate, as this isn't related to the consumption of the maintainer information by check-meta.nix. A good commit tile would be something along the lines of modules/meta-maintainers: set option as internal

@roberth

roberth commented Feb 4, 2026

Copy link
Copy Markdown
Member

Home Manager could use option merging to make it internal, but I wouldn't recommend it, because this is a Determinate Nix bug. They simply shouldn't warn about this.

nix-repl> (lib.evalModules { modules = [ ./modules/generic/meta-maintainers.nix
  { options.meta.maintainers = lib.mkOption { internal = true; }; } ]; }).
  options.meta.maintainers.internal
true

@roberth roberth closed this Feb 4, 2026
@Malix-Labs
Malix-Labs deleted the home-manager-fix branch February 5, 2026 00:00
@Malix-Labs Malix-Labs changed the title meta-maintainers: feat internal modules/meta-maintainers: set option as internal Mar 20, 2026
@Malix-Labs

Malix-Labs commented Mar 20, 2026 •

Copy link
Copy Markdown
Member Author

I get that it is a workaround, but regardless, wouldn't that option make sense to be set as internal anyway?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: "warning: options.json references store path without a proper context" (problem with home-manager manual)

3 participants