Repository navigation
nixos/memos: init module - #426687
nixos/memos: init module#426687
Conversation
010d2c9 to
bc88f00
Compare
acid-bong
left a comment
There was a problem hiding this comment.
The rest of the module looks great tho
bc88f00 to
ec780f0
Compare
|
Thanks for the review @acid-bong , fixed the comments in the new commit |
|
Anyone has any idea on why the PR failed ? It only had a 500 error in one of the checks but have no idea why : https://github.com/NixOS/nixpkgs/actions/runs/16410988062/job/46365736372?pr=426687 |
|
Close and reopen the PR |
acid-bong
left a comment
There was a problem hiding this comment.
Okay, CI is happy, so am I. Thx for the contribution and good luck nixing
|
Hello @M0ustach3, is there anything blocking this PR from being merged? |
|
Hi @wariuccio , nothing is blocking the PR from being merge but, as I'm not currently a maintainer of this module, I can't merge It and (I suppose?) I have to wait for a Nix maintainer to merge it. From what I can see, the passthru.tests on x86_64 darwin CI is still waiting from 24 days ago, don't know If this is related. Cheers |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
MattSturgeon
left a comment
There was a problem hiding this comment.
I can't see any obvious issues. Thanks for the contribution! Some code style feedback below:
ec780f0 to
466a68d
Compare
|
Hi @MattSturgeon ! Thanks a lot for the review and for all your comments on improving my future Nix code ! Made all the changed you suggested ! Cheers, |
MattSturgeon
left a comment
There was a problem hiding this comment.
Thanks for addressing my feedback!
I missed a few minor things that I should've brought up in the last review (sorry). Nothing too major though.
None of the remaining feedback blocks merging (some is purely discussion), so I'll approve now. Let me know your thoughts on individual threads.
466a68d to
f71157f
Compare
f71157f to
9c2999d
Compare
|
Apologies for the mentions in this PR and for CI fails. I have no idea why but my repo somehow rebased some commits from master. Anyway, I improved the code to match @MattSturgeon 's suggestions, and moved to a more generic way of specifying settings. Cheers, |
MattSturgeon
left a comment
There was a problem hiding this comment.
Looks good. Some minor feedback on some of the new code:
There was a problem hiding this comment.
No objection to having this note in the description. However it feels a little redundant to repeat the default text (which is shown immediately after the description).
If you do have it in both places, this may be a good spot to have a clickable link:
| ::: {.note} | |
| By default, generated from {option}`services.memos.settings`. | |
| ::: | |
| ::: {.note} | |
| By default, generated from [](opt-services.memos.settings). | |
| ::: |
or
| ::: {.note} | |
| By default, generated from {option}`services.memos.settings`. | |
| ::: | |
| ::: {.note} | |
| By default, generated from [](opt-${opt.settings}). | |
| ::: |
There was a problem hiding this comment.
Totally right, I kept the second suggested change, and removed the defaultText
There was a problem hiding this comment.
I kept the second suggested change, and removed the
defaultText
Sorry for the confusion:
If the option declares a non-static default, then we must also declare defaultText. If we don't declare defaultText, the docs will evaluate default and render it as the documented default value.
There are two solutions here:
- Don't pass
defaulttomkOptionand instead define an undocumented default via amkOptionDefaultconfig definition. - Pass both
defaultanddefaultTexttomkOption
It's fine to have an undocumented default if the description makes the default clear. Although, my personal preference is usually to use the standard default and defaultText attributes for defining and documenting the default. That said, I can see why you'd prefer a note admonition to the usual default field.
Entirely up to you.
There was a problem hiding this comment.
Yup, I indeed removed the defaultText and CI wasn't happy about it x) So i used your suggestion of
defaultText = lib.literalMD ''
generated from {option}`${opt.settings}`
'';9c2999d to
0d0a75e
Compare
0d0a75e to
ad0a995
Compare
|
Hi, Cheers, |
|
Thanks! |
Two different PRs, two different issues. The first PR, chronologically-merged-in, NixOS#426687 introduced a new module, and while reviewers “reviewed” the `meta.maintainers` entry, they did not notice the maintainer was not in the maintainers list file. - NixOS#426687 (comment) Then, in NixOS#437310, merged a few days later, another new module was added with M0ustach3 as a maintainer. At the very least, an attempt was made in de66c73 to add the maintainer to the list, but an unfortunate typo (or two?) in the maintainers list entry means the two intended usage of the new entry still don't work. The issue here is not from the contributors. The reviewers and committers could have done better, but it's not even truly their fault. The issue is the meta information in NixOS modules was never checked. In any way AFAICT. Otherwise this would have been caught immediately, and not four months later. Anyway, the intent clearly is that the entry should matche the GitHub username.
Two different PRs, two different issues. The first PR, chronologically-merged-in, NixOS#426687 introduced a new module, and while reviewers “reviewed” the `meta.maintainers` entry, they did not notice the maintainer was not in the maintainers list file. - NixOS#426687 (comment) Then, in NixOS#437310, merged a few days later, another new module was added with M0ustach3 as a maintainer. At the very least, an attempt was made in de66c73 to add the maintainer to the list, but an unfortunate typo (or two?) in the maintainers list entry means the two intended usage of the new entry still don't work. The issue here is not from the contributors. The reviewers and committers could have done better, but it's not even truly their fault. The issue is the meta information in NixOS modules was never checked. In any way AFAICT. Otherwise this would have been caught immediately, and not four months later. Anyway, the intent clearly is that the entry should matche the GitHub username.
Two different PRs, two different issues. The first PR, chronologically-merged-in, NixOS#426687 introduced a new module, and while reviewers “reviewed” the `meta.maintainers` entry, they did not notice the maintainer was not in the maintainers list file. - NixOS#426687 (comment) Then, in NixOS#437310, merged a few days later, another new module was added with M0ustach3 as a maintainer. At the very least, an attempt was made in de66c73 to add the maintainer to the list, but an unfortunate typo (or two?) in the maintainers list entry means the two intended usage of the new entry still don't work. The issue here is not from the contributors. The reviewers and committers could have done better, but it's not even truly their fault. The issue is the meta information in NixOS modules was never checked. In any way AFAICT. Otherwise this would have been caught immediately, and not four months later. Anyway, the intent clearly is that the entry should matche the GitHub username.
Two different PRs, two different issues. The first PR, chronologically-merged-in, NixOS#426687 introduced a new module, and while reviewers “reviewed” the `meta.maintainers` entry, they did not notice the maintainer was not in the maintainers list file. - NixOS#426687 (comment) Then, in NixOS#437310, merged a few days later, another new module was added with M0ustach3 as a maintainer. At the very least, an attempt was made in de66c73 to add the maintainer to the list, but an unfortunate typo (or two?) in the maintainers list entry means the two intended usage of the new entry still don't work. The issue here is not from the contributors. The reviewers and committers could have done better, but it's not even truly their fault. The issue is the meta information in NixOS modules was never checked. In any way AFAICT. Otherwise this would have been caught immediately, and not four months later. Anyway, the intent clearly is that the entry should matche the GitHub username. (cherry picked from commit 43eca5c)
Two different PRs, two different issues. The first PR, chronologically-merged-in, #426687 introduced a new module, and while reviewers “reviewed” the `meta.maintainers` entry, they did not notice the maintainer was not in the maintainers list file. - #426687 (comment) Then, in #437310, merged a few days later, another new module was added with M0ustach3 as a maintainer. At the very least, an attempt was made in de66c73 to add the maintainer to the list, but an unfortunate typo (or two?) in the maintainers list entry means the two intended usage of the new entry still don't work. The issue here is not from the contributors. The reviewers and committers could have done better, but it's not even truly their fault. The issue is the meta information in NixOS modules was never checked. In any way AFAICT. Otherwise this would have been caught immediately, and not four months later. Anyway, the intent clearly is that the entry should matche the GitHub username. (cherry picked from commit 43eca5c)
Two different PRs, two different issues. The first PR, chronologically-merged-in, NixOS#426687 introduced a new module, and while reviewers “reviewed” the `meta.maintainers` entry, they did not notice the maintainer was not in the maintainers list file. - NixOS#426687 (comment) Then, in NixOS#437310, merged a few days later, another new module was added with M0ustach3 as a maintainer. At the very least, an attempt was made in de66c73 to add the maintainer to the list, but an unfortunate typo (or two?) in the maintainers list entry means the two intended usage of the new entry still don't work. The issue here is not from the contributors. The reviewers and committers could have done better, but it's not even truly their fault. The issue is the meta information in NixOS modules was never checked. In any way AFAICT. Otherwise this would have been caught immediately, and not four months later. Anyway, the intent clearly is that the entry should matche the GitHub username.
Added NixOS module for memos
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.