-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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/syncthing: add options for declarative device/folder config #59985
Conversation
483d3cf
to
083404f
Compare
It would be nice to be able to add a device as Introducer, so it can add the other devices from the network automatically. |
Sure, I will add the option in the device submodule. |
Nice! I have really wanted something like this, I thought it wasn't possible. |
7df682e
to
d97c3d6
Compare
4133e86
to
c0e4c12
Compare
But apart from the folding naming the whole things works just fine. There are a few things I would add, for example an so it is a 👍 |
This seems to create problems.
|
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.
The cert
and key
argument need to be fixed
9532ff1
to
445cb3c
Compare
A recent syncthing change (I'm assuming this one) made it so that config changes made in the web interface (e.g. adding a device) don't persist across reboots. Is that intended behavior now that declarative config is possible, or should I open an issue? |
Uhm, If you haven't enabled anything with a declarative option that is indeed a bug and I would be happy to fix it. there are 2 options (overrideFolder, overrideDevice) which should only be needed if any device/folder is declarative configured.
|
I didn't change anything in the syncthing config. This happened after a Thanks for the workaround, I'll have to try it out. Or, perhaps even better, just move to this (awesome) new declarative config. EDIT: Not sure if it's relevant, but here's the syncthing config I had been using:
|
Alright, I made a PR for the fix: |
Motivation for this change
configure syncthing declaratively in
configuration.nix
(the true way ;) )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)