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: # 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 # - 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 = [ imports = [
../../modules/common-syncthing.nix ../../modules/common-syncthing.nix
@ -20,34 +18,36 @@
# Always use this in combination with above networing config to limit the access from outside LAN # Always use this in combination with above networing config to limit the access from outside LAN
guiAddress = "0.0.0.0:8384"; guiAddress = "0.0.0.0:8384";
folders = { settings = {
Keepass = { folders = {
devices = [ "hermes" "Childish Tycoon" ]; Keepass = {
type = "receiveonly"; devices = [ "hermes" "Childish Tycoon" ];
versioning = { type = "receiveonly";
type = "simple"; versioning = {
params.keep = "10"; type = "simple";
params.keep = "10";
};
}; };
};
Syncthing = { Syncthing = {
devices = [ "hermes" "Childish Tycoon" ]; devices = [ "hermes" "Childish Tycoon" ];
type = "receiveonly"; type = "receiveonly";
versioning = { versioning = {
type = "simple"; type = "simple";
params.keep = "3"; params.keep = "3";
};
}; };
};
org = { org = {
devices = [ "hermes" "Childish Tycoon" ]; devices = [ "hermes" "Childish Tycoon" ];
type = "receiveonly"; type = "receiveonly";
}; };
Music = { Music = {
devices = [ "hermes" "Childish Tycoon" ]; devices = [ "hermes" "Childish Tycoon" ];
type = "receiveonly"; type = "receiveonly";
fsWatcherEnabled = true; fsWatcherEnabled = true;
};
}; };
}; };
}; };

View file

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