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
ankisyncd, nixos/ankisyncd: init at 2.1.0 #82185
Conversation
@tsudoko Just a heads up that I've packaged this for 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.
This looks great, thank you! Feel free to ignore the two nits, which are mostly “this is the style I prefer” changes. However, the question about the name of the executable is important, I think, in order to avoid future breaking changes should it have been a mistake.
Also, I see you created the users with users.users
and created the directory with systemd.tmpfiles
. This works perfectly well, but nowadays we try to limit our user creation and use DynamicUsers
as much as possible, like https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/misc/freeswitch.nix#L86-L101 .
Do you think that this solution would be possible to apply to anki-sync-server?
pname = "ankisyncd"; | ||
version = "2.1.0"; | ||
src = fetchFromGitHub { | ||
owner = "tsudoko"; |
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.
@tsudoko Have you tried to ask for getting in @ankicommunity, so that it would be possible to have the more legitimate-looking url here?
This concern is not blocking merging though, as internet appears to confirm that the ankicommunity one is dead for the time being and yours is the current one.
@Ekleog Thanks for the review - it's great to get feedback so fast! I've taken care of most the issues. I also found a few other minor things, like for example using I realize now that I should have pushed the fixes regularly, so it's easier to review, and not squashed and force pushed until the end. Sorry about that. Regarding Without specifying these it seems that the permissions in the
I'm wondering if
Do you have any advice on this? I don't have that much experience with systemd units. |
I was thinking of also removing completely As for the force-pushing, do as you feel easiest! Github provides a link on the |
That works and results in a lot less code - great tip! I wasn't familiar with
Let me know how that looks now |
It looks great, thank you! |
Motivation for this change
ankisyncd is a python application for synchronizing Anki data.
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)