Switch syncthing back to having managed devices/folder

This commit is contained in:
Evie Litherland-Smith 2023-11-02 08:18:05 +00:00
parent 0ee059a354
commit 374ab29945

View file

@ -1,38 +1,51 @@
{ config, lib, pkgs, user, ... }:
{
let devices = [ "Ion" "Legion" "Northstar" "Ronin" "Vanguard" ];
in {
imports = [ ../traefik/syncthing.nix ];
services.syncthing = {
enable = true;
systemService = true;
overrideDevices = false;
overrideFolders = false;
overrideDevices = true;
overrideFolders = true;
openDefaultPorts = true;
settings.folders = {
"Documents" = {
id = "gvggx-6telk";
path = "~/Documents";
ignorePerms = true;
settings = {
devices = {
"Ion".id =
"7DD4NPH-6T2ET5A-4FCLFWW-CS6UR2W-IO5XQXC-DM5B2Q4-6X7DGU2-UKKVEAB";
"Legion".id =
"3SSNCLP-ZZKNS65-7CKKGFY-KJYQU6S-P5BM7SB-MMW5ZLM-TMND6IV-ZMUO4AQ";
"Northstar".id =
"HNK5Z72-757G3BP-I4PBWXY-FM5FWCM-ES4XP56-E5ULWB5-RGRCBUI-RHWRXQV"; # TODO
"Ronin".id =
"ZOL5YHK-ZZZULIE-UHGVKHW-H5E4BP7-S4CZBOX-OIZVUCV-RZUXOKA-QVBUBAJ"; # TODO
"Vanguard".id =
"NCJBYBK-JRVFAAN-XO4I5AS-B5L7QD2-5PAMWX7-PHD5FQH-Q2EI32H-U3GF5AA";
};
"Music" = {
id = "munzw-vnxhl";
path = "~/Music";
ignorePerms = true;
};
"Org" = {
id = "kztmq-eoqcs";
path = "~/Org";
ignorePerms = true;
};
"Pictures" = {
id = "ziuj8-rm6dn";
path = "~/Pictures";
ignorePerms = true;
};
"Videos" = {
id = "mbsop-qteua";
path = "~/Videos";
ignorePerms = true;
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;
};
};
};
};