Skip to content

some nix cleanup :D#51

Merged
water-sucks merged 7 commits intonix-community:mainfrom
isabelroses:cleanup
Apr 28, 2025
Merged

some nix cleanup :D#51
water-sucks merged 7 commits intonix-community:mainfrom
isabelroses:cleanup

Conversation

@isabelroses
Copy link
Copy Markdown
Contributor

Started using importApply to import modules, a more modern way to do that.
Also used the finalAttrs pattern for the package.
And some other misc simplifications.

Copy link
Copy Markdown
Collaborator

@water-sucks water-sucks left a comment

Choose a reason for hiding this comment

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

Thanks for this! I appreciate the improvements :}

};

module = import ./module.nix flake-self;
module = lib.modules.importApply ./module.nix flake-self;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

TIL about importApply, I'll definitely be using this in more of my Nix code from here on forth

@water-sucks water-sucks merged commit 97d93f5 into nix-community:main Apr 28, 2025
1 check 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.

2 participants