Skip to content

thunderbird: change settings type to json#5077

Merged
rycee merged 1 commit intonix-community:masterfrom
MatthewCash:thunderbird-json-settings
Sep 17, 2024
Merged

thunderbird: change settings type to json#5077
rycee merged 1 commit intonix-community:masterfrom
MatthewCash:thunderbird-json-settings

Conversation

@MatthewCash
Copy link
Copy Markdown
Contributor

@MatthewCash MatthewCash commented Mar 3, 2024

Description

This sets Thunderbird's settings option to use a JSON type, just like the Firefox module, so that nested sets can be used.

Tests failed due to something gpg-related before this change.

It might also be worthwhile to extract out Firefox and Thunderbird's modules to some generic Mozilla module so that these common options can be shared 🤷.

Checklist

  • Change is backwards compatible.

  • Code formatted with ./format.

  • Code tested through nix-shell --pure tests -A run.all or nix develop --ignore-environment .#all using Flakes.

  • 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.

Maintainer CC

@d-dervishi
@jKarlson

@github-actions github-actions bot added the mail HM email accounts, thunderbird, alot, notmuch, msmtp, meli... label Mar 3, 2024
Comment thread modules/programs/thunderbird.nix Outdated

cfg = config.programs.thunderbird;

jsonFormat = pkgs.formats.json { };
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.

this could have been thunderbirdJson including the description to avoid the repetition.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

@teto
Copy link
Copy Markdown
Collaborator

teto commented Mar 4, 2024

could you give an example of configuration that requires nested attributes and even better a test with it ?

@MatthewCash MatthewCash force-pushed the thunderbird-json-settings branch from 7f3319f to 1b6ad96 Compare March 4, 2024 21:18
@MatthewCash
Copy link
Copy Markdown
Contributor Author

could you give an example of configuration that requires nested attributes and even better a test with it ?

Done.

@MatthewCash MatthewCash force-pushed the thunderbird-json-settings branch from 1b6ad96 to a92f3fa Compare March 4, 2024 21:21
@MatthewCash MatthewCash force-pushed the thunderbird-json-settings branch from a92f3fa to a53efe7 Compare May 11, 2024 23:20
@MatthewCash MatthewCash force-pushed the thunderbird-json-settings branch from a53efe7 to 1823b8b Compare June 15, 2024 20:07
@stale
Copy link
Copy Markdown

stale bot commented Sep 15, 2024

Thank you for your contribution! I marked this pull request as stale due to inactivity. Please read the relevant sections below before commenting.

If you are the original author of the PR

  • GitHub sometimes doesn't notify people who commented / reviewed a PR previously when you (force) push commits. If you have addressed the reviews you can officially ask for a review from those who commented to you or anyone else.
  • If it is unfinished but you plan to finish it, please mark it as a draft.
  • If you don't expect to work on it any time soon, please consider closing it with a short comment encouraging someone else to pick up your work.
  • To get things rolling again, rebase the PR against the target branch and address valid comments.

If you are not the original author of the PR

  • If you want to pick up the work on this PR, please create a new PR and indicate that it supercedes and closes this PR.

@stale stale bot added the status: stale label Sep 15, 2024
@rycee rycee force-pushed the thunderbird-json-settings branch from 1823b8b to de53239 Compare September 17, 2024 17:39
Uses the JSON type, just like the Firefox module, so that nested sets
can be used.
@rycee rycee force-pushed the thunderbird-json-settings branch from de53239 to 4974dfb Compare September 17, 2024 22:12
@rycee rycee merged commit 4974dfb into nix-community:master Sep 17, 2024
@rycee
Copy link
Copy Markdown
Member

rycee commented Sep 17, 2024

Thanks! Finally merged to master now 🙂

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

Labels

mail HM email accounts, thunderbird, alot, notmuch, msmtp, meli... status: stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants