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/transmission: make user configurable #67393
nixos/transmission: make user configurable #67393
Conversation
Reviewed points
Possible improvements
Comments
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Which user? |
79a015e
to
c3e93d5
Compare
@pstch Thanks for your review! I've incorporated the change to the description you suggested. @aanderse I'm running Transmission (together with Sonarr, Radarr and Jackett) in a NixOS container which also runs an OpenVPN client. My downloads directory is mounted from the host to the container and transmission is configured to run in an user account that is also present on the host system. I would have preferred a user mapping on the container level, but the OpenVPN client requires root. |
@c0deaddict a system user account, or a regular user account for a person? I'm trying to head off people running systemd system level services as regular user accounts because services running as regular user accounts should usually be run as systemd user level services. We've run into some problems when people configure |
A system user account (named |
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.
@aanderse I get the possible footgun, but the use-case also seems valid to me. And since there's already plenty of examples of this in nixpkgs, I think there's no use in selectively applying a new policy here. Maybe documentation improvements could help.
So I'm in favor of merging. If you don't disagree. Thanks @pstch for the extensive review!
@timokau I wasn't meaning to imply I was against this PR. I have the thumbs up on the most recent reply to show my support. I think this change is fine and it's a bonus that the issue is understood by all involved here. |
Motivation for this change
Wanted to run a Transmission daemon under a different user than the default
transmission
. Added theuser
andgroup
configuration options to do this (defaults to user and group =transmission
). Used the same pattern as other packages that add the user/group only if the default is given [1]Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @astsmtl @vcunat @wizeman