58 lines
1.5 KiB
Nix
58 lines
1.5 KiB
Nix
{ config, pkgs, ... }: {
|
|
services.syncthing = {
|
|
enable = true;
|
|
openDefaultPorts = true;
|
|
# group = "syncthing";
|
|
# user = "syncthing";
|
|
# dataDir = "/home/syncthing/shares";
|
|
# configDir = "/home/syncthing/config";
|
|
overrideDevices =
|
|
true; # overrides any devices added or deleted through the WebUI
|
|
overrideFolders =
|
|
true; # overrides any folders added or deleted through the WebUI
|
|
settings = {
|
|
devices = {
|
|
"home" = {
|
|
id =
|
|
"FRCTEHB-WI3Q3CH-6MPKKRX-FTJMOCK-44K2D32-ORM52ZI-S2GTX2X-IRUSAQ5";
|
|
};
|
|
"android" = {
|
|
id =
|
|
"4Z7HDYB-C56BONH-JRBN5D7-LDFNHQJ-5BQDLVU-O3SMBPI-3VZTL7V-ERGU2Q5";
|
|
};
|
|
"allegro" = {
|
|
id =
|
|
"CLANFN6-Q26KKQL-S6OZ4JW-75CM2JC-R47DIWM-G7RBX7T-B4TJPTS-5U3ZRQH";
|
|
};
|
|
};
|
|
folders = {
|
|
"~/notes" = {
|
|
id = "njhxw-6wmte";
|
|
devices = [
|
|
"home"
|
|
"android"
|
|
"allegro"
|
|
]; # Which devices to share the folder with
|
|
};
|
|
|
|
"~/android_dcim" = {
|
|
id = "3ku25-ww5zg";
|
|
devices = [
|
|
"home"
|
|
"android"
|
|
"allegro"
|
|
]; # Which devices to share the folder with
|
|
};
|
|
|
|
"~/passdb" = {
|
|
id = "eo3io-kbitv";
|
|
devices = [
|
|
"home"
|
|
"android"
|
|
"allegro"
|
|
]; # Which devices to share the folder with
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|