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
nixos/navidrome: init module and test #106008
Conversation
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.
I've left some comments I hope you find useful. Let me know if you have any questions. Thanks for contributing!
Co-authored-by: aciceri <andrea.ciceri@autistici.org>
b99607c
to
06939d2
Compare
@@ -20,13 +26,17 @@ stdenv.mkDerivation rec { | |||
installPhase = '' | |||
mkdir -p $out/bin | |||
cp navidrome $out/bin | |||
mkdir -p $out/lib/systemd/system |
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.
Ah, I see. We don't compile from source. Presumably because of node
.
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.
Looks like it. Unfortunately with this only x86_64 is supported.
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.
I think I've seen someone build from source and use the binary release just for the node
assets before 🤔 Sure, that is a bit hacky, but might be worth investigating in a future PR.
06939d2
to
f78a7f1
Compare
BindReadOnlyPaths = [ | ||
builtins.storeDir | ||
] ++ lib.optional (cfg.settings ? MusicFolder) cfg.settings.MusicFolder; | ||
CapabilityBoundingSet = ""; |
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.
No longer required, provided by upstream
unit. And others.
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.
I can't find it and my pull request has not been merge
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.
Upstream does indeed not have this yet.
And the mentioned PR which adds it (navidrome/navidrome#677) has not been merged yet.
ping @nyanloutre on status of this PR. |
Hey, I am interested in having this module merged. Apart from the merge conflict, is there anything else that needs to be done? I do not know if @nyanloutre wanted to add more to it, but I could lend a hand if I can. |
I've been running this for a while. Without upstream navidrome/navidrome#677 getting merged, you need to override If you wanna override it, you need something like:
so I guess what's to be done with this PR depends on what gets done with the upstream PR? |
Is there a reason that the |
@ambroisie The service runs using |
@Sohalt does that mean that for example, if I have a |
Hey @Sohalt, regarding navidrome/navidrome#677 I don't think using the Thoughts? |
Ping, what's keeping this from being merged? The systemd unit has been merged upstream, and the unstable channel has the latest version packaged. |
@deluan thank you for confirming that we shouldn't be using the upstream unit. Anyone volunteering to finish this PR off? |
@aanderse I'm ready to work on it if @nyanloutre can't finish it :-) |
I have rebased and opened a new MR, at #128201. |
Duplicate of #128201 |
Co-authored-by: aciceri andrea.ciceri@autistici.org
Motivation for this change
Continuing work from #92621
Added systemd security options
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)