Add syncthing config
This commit is contained in:
parent
f8fb80f477
commit
f98528549b
|
@ -31,9 +31,19 @@
|
||||||
allowedUDPPorts = [
|
allowedUDPPorts = [
|
||||||
42069 # wireguard
|
42069 # wireguard
|
||||||
];
|
];
|
||||||
|
interfaces = {
|
||||||
|
"wg0" = {
|
||||||
|
allowedTCPPorts = [
|
||||||
|
8384 22000 # syncthing
|
||||||
|
];
|
||||||
|
allowedUDPPorts = [
|
||||||
|
22000 21027 # syncthing
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
wireguard.interfaces = {
|
wireguard.interfaces = {
|
||||||
wg0 = {
|
"wg0" = {
|
||||||
ips = [ "10.100.0.1/24" ];
|
ips = [ "10.100.0.1/24" ];
|
||||||
listenPort = 42069;
|
listenPort = 42069;
|
||||||
postSetup = ''
|
postSetup = ''
|
||||||
|
@ -101,6 +111,24 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
syncthing = {
|
||||||
|
enable = true;
|
||||||
|
user = "syncthing";
|
||||||
|
dataDir = "/home/syncthing/sync/";
|
||||||
|
configDir = "/home/syncthing/.config/";
|
||||||
|
overrideDevices = true;
|
||||||
|
overrideFolders = true;
|
||||||
|
devices = {
|
||||||
|
"kamov" = { id = (builtins.readFile /root/secrets/syncthing/kamov.id); };
|
||||||
|
"phone" = { id = (builtins.readFile /root/secrets/syncthing/phone.id); };
|
||||||
|
};
|
||||||
|
folders = {
|
||||||
|
"obsidian" = {
|
||||||
|
path = "/home/syncthing/sync/obsidian";
|
||||||
|
devices = [ "kamov" "phone" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
|
|
Loading…
Reference in a new issue