-
-
Notifications
You must be signed in to change notification settings - Fork 14.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
transmission: use freeformType on settings and various fixes #96655
Conversation
|
@aanderse There's different options for different ports now, |
|
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.
In addition to the things below, the descriptions of options downloadDirPermissions
and home
can be updated to reference the new options.
Also as another improvement to this module: There's homeDir
defined in a let in
at the top which can be removed (its usages need to be fixed though).
1db98aa
to
6197c61
Compare
Done.
Done. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
8c23bd2
to
7828174
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
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.
LGTM.
I don't see any obvious migration pitfall here apart from what's already been addressed.
Tested on my personal deployment.
I'll leave it there for 7 days before merging to let @infinisil perform a second pass if he feels like it.
Edit: There are some VM tests, see |
|
Motivation for this change
Leveraging freeformType on
services.transmission.settings
.Things done
port
tosettings.rpc-port
.openFirewall
toopenPeerPorts
.openRPCPort
.settings.trash-original-torrent-files
.mkDefault
s when settingboot.kernel.sysctl
.<xref linkend="opt-services.transmission.${optionName}"/>
indescription
s.InaccessiblePaths=
on theRootDirectory=
's path.SystemCallErrorNumber=EPERM
which may silent failures to call a disallowed syscalls instead of failing hard with anESYS
, that will enable us to know more easily if we need to relax theSystemCallFilter=
(usingcoredumpctl debug
to know which syscall failed).watch-dir
creation.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)