Skip to content

feat: expose xxxModules as flake outputs#1101

Merged
Pandapip1 merged 2 commits intonix-community:mainfrom
XYenon:feat/expose-modules-flake-outputs
Mar 30, 2026
Merged

feat: expose xxxModules as flake outputs#1101
Pandapip1 merged 2 commits intonix-community:mainfrom
XYenon:feat/expose-modules-flake-outputs

Conversation

@XYenon
Copy link
Copy Markdown
Member

@XYenon XYenon commented Mar 24, 2026

Closes #799.

Adds standard flake outputs so modules can be accessed via:
nur.repos.${repo}.modules.nixos.${module}
nur.repos.${repo}.modules.homeManager.${module}
nur.repos.${repo}.modules.darwin.${module}
nur.repos.${repo}.modules.flake.${module}

nixosModules falls back to the legacy modules attribute when nixosModules is not present in a repo. Missing attributes in any repo gracefully return {}.

…s flake outputs

Closes #799.

Adds standard flake outputs so modules can be accessed via:
  nur.nixosModules.repos.${repo}.${module}
  nur.homeModules.repos.${repo}.${module}
  nur.darwinModules.repos.${repo}.${module}
  nur.flakeModules.repos.${repo}.${module}

nixosModules falls back to the legacy 'modules' attribute when
'nixosModules' is not present in a repo. Missing attributes in
any repo gracefully return {}.

Amp-Thread-ID: https://ampcode.com/threads/T-019d1fc6-58ae-750f-bac6-f5e66598ddfc
Co-authored-by: Amp <amp@ampcode.com>
@XYenon XYenon force-pushed the feat/expose-modules-flake-outputs branch from a06f519 to f7f356b Compare March 27, 2026 14:24
@XYenon XYenon requested a review from Pandapip1 March 30, 2026 04:44
Copy link
Copy Markdown
Member

@Pandapip1 Pandapip1 left a comment

Choose a reason for hiding this comment

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

I wish there was a nicer way to do this, but LGTM.

@Pandapip1 Pandapip1 added this pull request to the merge queue Mar 30, 2026
Merged via the queue into nix-community:main with commit 333d355 Mar 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copy modules from NUR into NUR's flake

3 participants