2023-10-09 11:40:25 +01:00
|
|
|
{ config, lib, pkgs, user, ... }:
|
2023-11-02 08:18:05 +00:00
|
|
|
let devices = [ "Ion" "Legion" "Northstar" "Ronin" "Vanguard" ];
|
|
|
|
in {
|
2023-10-26 17:22:47 +01:00
|
|
|
imports = [ ../traefik/syncthing.nix ];
|
2023-10-26 16:49:11 +01:00
|
|
|
services.syncthing = {
|
2023-05-06 15:24:31 +01:00
|
|
|
enable = true;
|
|
|
|
systemService = true;
|
2023-11-02 08:18:05 +00:00
|
|
|
overrideDevices = true;
|
|
|
|
overrideFolders = true;
|
2023-05-06 15:24:31 +01:00
|
|
|
openDefaultPorts = true;
|
2023-11-02 08:18:05 +00:00
|
|
|
settings = {
|
|
|
|
devices = {
|
|
|
|
"Ion".id =
|
|
|
|
"7DD4NPH-6T2ET5A-4FCLFWW-CS6UR2W-IO5XQXC-DM5B2Q4-6X7DGU2-UKKVEAB";
|
|
|
|
"Legion".id =
|
|
|
|
"3SSNCLP-ZZKNS65-7CKKGFY-KJYQU6S-P5BM7SB-MMW5ZLM-TMND6IV-ZMUO4AQ";
|
|
|
|
"Northstar".id =
|
2023-11-02 10:27:58 +00:00
|
|
|
"DJVVFUX-QRJNEUZ-OVEQ63J-KJIGNY7-O4MEOMH-GDKYHOB-BQES3O4-C3BJHQ2";
|
2023-11-02 08:18:05 +00:00
|
|
|
"Ronin".id =
|
2023-11-02 10:27:58 +00:00
|
|
|
"WNM6YCB-K2ZHB4E-J3A3NFI-DE4QKAD-QCNNYGS-QUTVFOG-NWFHVJQ-CUDXKQD";
|
2023-11-02 08:18:05 +00:00
|
|
|
"Vanguard".id =
|
|
|
|
"NCJBYBK-JRVFAAN-XO4I5AS-B5L7QD2-5PAMWX7-PHD5FQH-Q2EI32H-U3GF5AA";
|
2023-06-27 09:54:15 +01:00
|
|
|
};
|
2023-11-02 08:18:05 +00:00
|
|
|
folders = {
|
|
|
|
"Documents" = {
|
|
|
|
inherit devices;
|
|
|
|
id = "gvggx-6telk";
|
|
|
|
path = "~/Documents";
|
|
|
|
ignorePerms = true;
|
|
|
|
};
|
|
|
|
"Music" = {
|
|
|
|
inherit devices;
|
|
|
|
id = "munzw-vnxhl";
|
|
|
|
path = "~/Music";
|
|
|
|
ignorePerms = true;
|
|
|
|
};
|
|
|
|
"Pictures" = {
|
|
|
|
inherit devices;
|
|
|
|
id = "ziuj8-rm6dn";
|
|
|
|
path = "~/Pictures";
|
|
|
|
ignorePerms = true;
|
|
|
|
};
|
|
|
|
"Videos" = {
|
|
|
|
inherit devices;
|
|
|
|
id = "mbsop-qteua";
|
|
|
|
path = "~/Videos";
|
|
|
|
ignorePerms = true;
|
|
|
|
};
|
2023-05-09 07:48:19 +01:00
|
|
|
};
|
|
|
|
};
|
2023-05-06 15:24:31 +01:00
|
|
|
};
|
|
|
|
}
|