Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consider exposing base16 attrset containing only colors #21

Open
tristanRW opened this issue Dec 8, 2024 · 1 comment
Open

consider exposing base16 attrset containing only colors #21

tristanRW opened this issue Dec 8, 2024 · 1 comment

Comments

@tristanRW
Copy link

tristanRW commented Dec 8, 2024

I am using the homeManager module in a flake setup (import is the current master branch).

When I set scheme = "${inputs.tt-schemes}/base16/everforest.yaml"; the attrset produced by mkSchemeAttrs is structured in a way that it produces an error when using it with certain other nix modules like nixvims base16 colorscheme.

Am I missing an existing way to get a clean attrset (basically the output of yaml2attr) using the interface provided by config.scheme ?

Otherwise the value of config.scheme could be structured so one can easily access certain sets without other attributes like metadata.
I mean something like this:

|---meta
|---palette
|      |---base00
|      |---base01
|     ...
|---menmonic
|---toList

Can you advise on this?

@SenchoPens
Copy link
Owner

Hi, thanks for the issue, I'm open to PRs if they won't break the compatibilty. Otherwise I don't have the time now to add more features. I think this is quite easy to implement in place in the config. IMO adding this as a separate attribute won't be of much benefit, I expect the discoverability of such helper stuff to be low.

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

No branches or pull requests

2 participants