Conversation
a5dc6f4 to
015f640
Compare
| example = "pkgs.ncmpcpp.override { ... }"; | ||
| }; | ||
|
|
||
| mpdMusicDir = mkOption { |
There was a problem hiding this comment.
We could get rid of this option and place it under settings if settings were a freeform module, but that breaks the tests with an error:
Module `:anon-1:anon-1' has an unsupported attribute `freeformType'.
This is caused by introducing a top-level `config' or `options'
attribute. Add configuration attributes immediately on the top level
instead, or move all of them (namely: freeformType) into the
explicit `config' attribute.
The Freeform modules PR has only been merged 12 days ago, though, so it may not be a great idea to start relying on it already.
There was a problem hiding this comment.
This is what that might look like https://github.com/olmokramer/home-manager/blob/ncmpcpp-freeform/modules/programs/ncmpcpp.nix
|
Thanks for the review! I have implemented all your suggestions except for the bindings type, and added a warning if both |
|
Thanks again! I've applied your changes and added a |
|
Ok I've changed the default value of I've also "resolved" the comments that I have addressed for my own convenience, but feel free to "unresolve" them if you think they deserve more attention :) |
|
I've moved the test of the MPD configuration to a new directory and only run it on Linux now. Also rebuilt the documentation one last time, and I noticed that the default for |
|
Thanks! Rebased to master in 4b702bf. |
Description
Adds a module for https://github.com/ncmpcpp/ncmpcpp. All settings are configured through a single
settingsattrset, except formpd_music_dir, which has its own dedicated option. If it is set tonull(the default) its value is taken fromservices.mpd.musicDirectoryandservices.mpd.enableis required to betrue.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
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.