Repository navigation
Add spotifyd package and service - #65092
Merged
Merged
Conversation
5 of 10 tasks
FRidh
reviewed
Jul 20, 2019
aanderse
requested changes
Jul 20, 2019
aanderse
left a comment
Member
There was a problem hiding this comment.
I've included some suggestions I hope will be helpful. Please let me know if you have any questions.
aanderse
reviewed
Jul 20, 2019
Member
|
@anderslundstedt LGTM 👍 Please squash all but the first commit into one and then from my perspective we're good to merge. Thanks! |
Contributor
Author
|
Great! Thanks everyone for the swift review. Should we not let the package and the module be introduced by separate commits? I kept it like that for now, but let me know if I should squash them together. |
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation for this change
Spotifyd is a nice spotify connect server. This adds a spotifyd package and a spotifyd service.
I took over the abandoned #55923, addressing the comments to the best of my ability. I am not very experienced with adding packages or services to NixOS, so likely there are still things to address.
Additional comments
Here are the differences between this pull request and #55923:
In the package:
Version bumped to 0.2.11, which also eliminates the need for the
noavxcrypto.patchpatch.platforms.unixinstead ofplatforms.all.In the service module:
As suggested by a comment, removed the
dataDiroption. As far as I can see, this option does indeed seem unnecessary.As suggested by a comment, use command line option
--cache_path /var/lib/spotifydinstead of settingEnvironment = "HOME=/var/lib/spotifyd".Added
spotifyduser belonging to theaudiogroup. (Did not work for me without this.)Unresolved #55923 comments not addressed by the above changes:
Using
lib.generators.toINIto generate the config line from theconfigservice option. I did not feel I had the competence to make such a change (and it is not clear to me why such a change would be preferable).Dropping the
--no-daemonfrom the service start. I tried this which resulted in the service crashing.Things done
sandboxinnix.confon non-NixOS)nix-shell -p nix-review --run "nix-review wip"./result/bin/)nix path-info -Sbefore and after)