Fix and enable Syncthing with newer options

This commit is contained in:
Payas Relekar 2023-08-05 18:27:20 +05:30
parent dec811f48e
commit 3a54ab7581
2 changed files with 26 additions and 26 deletions

View file

@ -1,8 +1,6 @@
{ ... }:
# TODO:
# - Setup certificates and keys declaratively? This will be a real possibility of depending on my SSH key for a whole lotta stuff. Perhaps keep that for future
# - Add more folders and devices in declarative way
# - Make ALL the devices use this declaratively :)
{
imports = [
../../modules/common-syncthing.nix
@ -20,34 +18,36 @@
# Always use this in combination with above networing config to limit the access from outside LAN
guiAddress = "0.0.0.0:8384";
folders = {
Keepass = {
devices = [ "hermes" "Childish Tycoon" ];
type = "receiveonly";
versioning = {
type = "simple";
params.keep = "10";
settings = {
folders = {
Keepass = {
devices = [ "hermes" "Childish Tycoon" ];
type = "receiveonly";
versioning = {
type = "simple";
params.keep = "10";
};
};
};
Syncthing = {
devices = [ "hermes" "Childish Tycoon" ];
type = "receiveonly";
versioning = {
type = "simple";
params.keep = "3";
Syncthing = {
devices = [ "hermes" "Childish Tycoon" ];
type = "receiveonly";
versioning = {
type = "simple";
params.keep = "3";
};
};
};
org = {
devices = [ "hermes" "Childish Tycoon" ];
type = "receiveonly";
};
org = {
devices = [ "hermes" "Childish Tycoon" ];
type = "receiveonly";
};
Music = {
devices = [ "hermes" "Childish Tycoon" ];
type = "receiveonly";
fsWatcherEnabled = true;
Music = {
devices = [ "hermes" "Childish Tycoon" ];
type = "receiveonly";
fsWatcherEnabled = true;
};
};
};
};

View file

@ -9,7 +9,7 @@ in
# - Make ALL the nodes use this declaratively :)
{
services.syncthing = {
enable = false;
enable = true;
openDefaultPorts = true;
user = payas;
group = payas;