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/modules: services.syncthing add guiAddress parameter #48119
Conversation
bc62970
to
2513090
Compare
@@ -16,6 +16,14 @@ in { | |||
available on http://127.0.0.1:8384/. | |||
''; | |||
|
|||
guiAddress = mkOption { | |||
type = types.string; |
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.
Use types.str
instead
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 used types.string for consistency ( it is used in the other options as well )
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.
Change all of them to str
then :)
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.
Done
type = types.string; | ||
default = "127.0.0.1:8384"; | ||
description = '' | ||
Override GUI listen address. |
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.
How about "Address to server the GUI on" instead? The fact that it overrides the default shouldn't be in the options description
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.
Done
2513090
to
fa6c8ec
Compare
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 good once @infinisil 's concerns have been addressed.
As Infinisil mentioned in NixOS#48119 (comment)
Looks good, thank you for your contribution @mrVanDalo |
Could you add a release note that explains the guiAddress change? This appears to override the default from configDir. |
@matthewbauer I don't know how to write a release note. |
All, please note that the latest version .52 is just out which supports a "unix://" parameter to guiAddress which would be neat to support. |
Motivation for this change
To make it possible to configure your syncthing from a remote machine.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)