-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
ncmpcpp: add module #1457
ncmpcpp: add module #1457
Conversation
a5dc6f4
to
015f640
Compare
example = "pkgs.ncmpcpp.override { ... }"; | ||
}; | ||
|
||
mpdMusicDir = mkOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what that might look like https://github.com/olmokramer/home-manager/blob/ncmpcpp-freeform/modules/programs/ncmpcpp.nix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. I'll have to check out 🙂
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
settings
attrset, except formpd_music_dir
, which has its own dedicated option. If it is set tonull
(the default) its value is taken fromservices.mpd.musicDirectory
andservices.mpd.enable
is 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
.