Configure syncthing
This commit is contained in:
parent
22804b6e32
commit
333e8a713f
|
@ -117,20 +117,13 @@
|
||||||
};
|
};
|
||||||
syncthing = {
|
syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = "syncthing";
|
user = "kamov";
|
||||||
dataDir = "/home/syncthing/sync/";
|
dataDir = "/home/kamov/sync/";
|
||||||
configDir = "/home/syncthing/.config/";
|
configDir = "/home/kamov/sync/.config/";
|
||||||
overrideDevices = true;
|
guiAddress = "0.0.0.0:8384";
|
||||||
overrideFolders = true;
|
extraOptions.gui = {
|
||||||
devices = {
|
user = "admin";
|
||||||
"kamov" = { id = (builtins.readFile /root/secrets/syncthing/kamov.id); };
|
password = "admin";
|
||||||
"phone" = { id = (builtins.readFile /root/secrets/syncthing/phone.id); };
|
|
||||||
};
|
|
||||||
folders = {
|
|
||||||
"obsidian" = {
|
|
||||||
path = "/home/syncthing/sync/obsidian";
|
|
||||||
devices = [ "kamov" "phone" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue