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

polybar: use recursive config type #2235

Merged
merged 1 commit into from
Nov 15, 2021

Conversation

arcnmx
Copy link
Contributor

@arcnmx arcnmx commented Jul 30, 2021

Description

Allow merging of lists and attrsets in polybar configs.

(I believe I need to set a description or something to fix recursive types in the docs, what do I need to do again?)

Checklist

  • Change is backwards compatible.

  • Code formatted with ./format.

  • Code tested through nix-shell --pure tests -A run.all.

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.

    • Added myself and the module files to .github/CODEOWNERS.

@@ -112,7 +112,9 @@ in {
};

settings = mkOption {
type = types.attrsOf types.attrs;
type = with types;
let ty = oneOf [ bool int str (listOf ty) (attrsOf ty) ];
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't it also include floats?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup, thanks!

Allow merging of lists and attrsets
Copy link
Member

@berbiche berbiche left a comment

Choose a reason for hiding this comment

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

Thanks.

@berbiche berbiche merged commit a7c5b00 into nix-community:master Nov 15, 2021
peterhoeg pushed a commit to peterhoeg/home-manager that referenced this pull request Nov 29, 2021
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