Clean up syncthing config, add N0245 config

This commit is contained in:
Evie Litherland-Smith 2023-06-27 09:54:15 +01:00
parent 28264418ed
commit d01c8a8cc3
24 changed files with 74 additions and 216 deletions

View file

@ -1,21 +1,7 @@
{...}: {
imports = [
./default.nix
./folders/archive.nix
./folders/books.nix
./folders/camera.nix
./folders/comics.nix
./folders/documents.nix
./folders/exports.nix
./folders/movies.nix
./folders/notes.nix
./folders/pictures.nix
./folders/xochitl.nix
./folders/zotero.nix
];
imports = [./default.nix];
services.syncthing = {
user = "xenia";
group = "users";
extraOptions.options.globalAnnounceEnabled = true;
};
}

View file

@ -1,26 +1,19 @@
{...}: {
imports = [
./default.nix
./devices/Ion.nix
./devices/Legion.nix
./devices/Monarch.nix
./devices/Northstar.nix
./devices/Vanguard.nix
./folders/notes.nix
./folders/zotero.nix
];
imports = [./default.nix];
services.syncthing = {
user = "elitherl";
group = "users";
dataDir = "/home/elitherl";
extraOptions.options.globalAnnounceEnabled = true;
folders."Notes" = {
path = "~/notes";
devices = ["ion" "legion" "monarch" "northstar" "vanguard"];
};
folders."Zotero" = {
path = "~/Documents/Zotero";
devices = ["ion" "legion"];
folders = {
"Archive".enable = false;
"Books".enable = false;
"Comics".enable = false;
"Documents".enable = false;
"Exports".enable = false;
"Notes".path = "~/notes";
"Pictures".enable = false;
"Xochitl".enable = false;
"Zotero".path = "~/Documents/Zotero";
};
};
}

View file

@ -1,19 +1,18 @@
{...}: {
imports = [
./default.nix
./folders/comics.nix
./folders/notes.nix
./folders/pictures.nix
];
imports = [./default.nix];
services.syncthing = {
user = "xenia";
group = "users";
dataDir = "/home/xenia";
extraOptions.options.globalAnnounceEnabled = true;
folders = {
"Archive".path = "~/Documents/Archive";
"Books".path = "~/Documents/Books";
"Comics".path = "~/Documents/Comics";
"Documents".path = "~/Documents/Sync";
"Exports".path = "~/Documents/Exports";
"Notes".path = "~/notes";
"Pictures".path = "~/Pictures";
"Zotero".path = "~/Documents/Zotero";
};
};
}

View file

@ -1,13 +1,63 @@
{lib, ...}: {
imports = [./devices];
{...}: {
services.syncthing = {
enable = true;
systemService = true;
openDefaultPorts = true;
extraOptions = {
options = {
globalAnnounceEnabled = lib.mkDefault false;
localAnnounceEnabled = lib.mkDefault true;
devices = {
"ion".id = "7DD4NPH-6T2ET5A-4FCLFWW-CS6UR2W-IO5XQXC-DM5B2Q4-6X7DGU2-UKKVEAB";
"legion".id = "6OX54CG-EAQMXKA-K7TXB5P-G5A27HB-52JE2FA-XNAYZU6-YMIDBXP-RKPBJQV";
"monarch".id = "CJSUZQY-67XBLEZ-VKVHQHI-BLEUZNF-G4237AV-AW44CGH-F3JDKXU-CWT3RQZ";
"northstar".id = "W3QZTFS-BB42JYB-NQBZ5IM-H3WLAUQ-M57I2CP-FALWGEX-JI2ZZOC-QWAX2QQ";
"remarkable".id = "GHB6JKS-JOA3HHP-TYHB3IJ-GLV26QW-RWRZAMG-XYFGFB6-QLUHDSH-GNPZVAO";
"vanguard".id = "I366QNQ-D3FTDRX-RNOTXMW-YITZXOF-DSCDMQD-63Q72LI-ME2Y4HZ-T34RMQK";
"N0245".id = "ZOL5YHK-ZZZULIE-UHGVKHW-H5E4BP7-S4CZBOX-OIZVUCV-RZUXOKA-QVBUBAJ";
};
folders = {
"Archive" = {
id = "hwnqy-xzcdx";
ignorePerms = true;
devices = ["legion" "monarch" "vanguard"];
};
"Books" = {
id = "zjmxy-ycmbq";
ignorePerms = true;
devices = ["legion" "monarch" "northstar" "remarkable" "vanguard"];
};
"Comics" = {
id = "kc2h0-q3wot";
ignorePerms = true;
devices = ["ion" "legion" "monarch" "northstar" "vanguard"];
};
"Documents" = {
id = "qc6qa-bipsd";
ignorePerms = true;
devices = ["legion" "monarch" "northstar" "vanguard"];
};
"Exports" = {
id = "tof2e-pdtde";
ignorePerms = true;
devices = ["legion" "monarch" "vanguard"];
};
"Notes" = {
id = "4ggjz-5dyop";
ignorePerms = true;
devices = ["ion" "legion" "monarch" "northstar" "vanguard" "N0245"];
};
"Pictures" = {
id = "ziuj8-rm6dn";
ignorePerms = true;
devices = ["ion" "legion" "monarch" "northstar" "vanguard"];
};
"Xochitl" = {
id = "dkcbx-kq7hl";
type = "receiveonly";
ignorePerms = true;
devices = ["legion" "remarkable"];
};
"Zotero" = {
id = "huyvn-liwc9";
ignorePerms = true;
devices = ["ion" "legion" "monarch" "northstar" "vanguard" "N0245"];
};
};
};

View file

@ -1 +0,0 @@
{...}: {services.syncthing.devices."H0615".id = "VVKKUT6-DMNEJ6J-ZI2QREG-SOLG7S5-V2V6WN3-UCQH2EN-6S2XXLS-FKN6KQF";}

View file

@ -1 +0,0 @@
{...}: {services.syncthing.devices."ion".id = "7DD4NPH-6T2ET5A-4FCLFWW-CS6UR2W-IO5XQXC-DM5B2Q4-6X7DGU2-UKKVEAB";}

View file

@ -1 +0,0 @@
{...}: {services.syncthing.devices."J0162".id = "NTMLN4U-RPYURFR-P322MUO-2WJGAAF-CLV3RLL-SDUNLTD-4AXVIWG-GBDY3AF";}

View file

@ -1 +0,0 @@
{...}: {services.syncthing.devices."legion".id = "6OX54CG-EAQMXKA-K7TXB5P-G5A27HB-52JE2FA-XNAYZU6-YMIDBXP-RKPBJQV";}

View file

@ -1 +0,0 @@
{...}: {services.syncthing.devices."monarch".id = "CJSUZQY-67XBLEZ-VKVHQHI-BLEUZNF-G4237AV-AW44CGH-F3JDKXU-CWT3RQZ";}

View file

@ -1 +0,0 @@
{...}: {services.syncthing.devices."northstar".id = "W3QZTFS-BB42JYB-NQBZ5IM-H3WLAUQ-M57I2CP-FALWGEX-JI2ZZOC-QWAX2QQ";}

View file

@ -1 +0,0 @@
{...}: {services.syncthing.devices."remarkable".id = "GHB6JKS-JOA3HHP-TYHB3IJ-GLV26QW-RWRZAMG-XYFGFB6-QLUHDSH-GNPZVAO";}

View file

@ -1 +0,0 @@
{...}: {services.syncthing.devices."vanguard".id = "I366QNQ-D3FTDRX-RNOTXMW-YITZXOF-DSCDMQD-63Q72LI-ME2Y4HZ-T34RMQK";}

View file

@ -1,10 +0,0 @@
{...}: {
imports = [
./Ion.nix
./Legion.nix
./Monarch.nix
./Northstar.nix
./Remarkable.nix
./Vanguard.nix
];
}

View file

@ -1,11 +0,0 @@
{lib, ...}: {
imports = [../devices];
services.syncthing.folders."Archive" = {
label = "Archive";
path = lib.mkDefault "/var/lib/syncthing/Archive/";
id = "hwnqy-xzcdx";
ignorePerms = true;
devices = lib.mkDefault ["legion" "monarch" "vanguard"];
enable = true;
};
}

View file

@ -1,17 +0,0 @@
{lib, ...}: {
imports = [../devices];
services.syncthing.folders."Books" = {
label = "Books";
path = lib.mkDefault "/var/lib/syncthing/Books/";
id = "zjmxy-ycmbq";
ignorePerms = true;
devices = lib.mkDefault [
"legion"
"monarch"
"northstar"
"remarkable"
"vanguard"
];
enable = true;
};
}

View file

@ -1,12 +0,0 @@
{lib, ...}: {
imports = [../devices];
services.syncthing.folders."Camera" = {
label = "Camera";
path = lib.mkDefault "/var/lib/syncthing/Camera/";
id = "fp4_4j7w-photos";
type = "receiveonly";
ignorePerms = true;
devices = lib.mkDefault [];
enable = false;
};
}

View file

@ -1,17 +0,0 @@
{lib, ...}: {
imports = [../devices];
services.syncthing.folders."Comics" = {
label = "Comics";
path = lib.mkDefault "/var/lib/syncthing/Comics/";
id = "kc2h0-q3wot";
ignorePerms = true;
devices = lib.mkDefault [
"ion"
"legion"
"monarch"
"northstar"
"vanguard"
];
enable = true;
};
}

View file

@ -1,16 +0,0 @@
{lib, ...}: {
imports = [../devices];
services.syncthing.folders."Documents" = {
label = "Documents";
path = lib.mkDefault "/var/lib/syncthing/Documents/";
id = "qc6qa-bipsd";
ignorePerms = true;
devices = lib.mkDefault [
"legion"
"monarch"
"northstar"
"vanguard"
];
enable = true;
};
}

View file

@ -1,11 +0,0 @@
{lib, ...}: {
imports = [../devices];
services.syncthing.folders."Exports" = {
label = "Exports";
path = lib.mkDefault "/var/lib/syncthing/Exports/";
id = "tof2e-pdtde";
ignorePerms = true;
devices = lib.mkDefault ["legion" "monarch" "vanguard"];
enable = true;
};
}

View file

@ -1,11 +0,0 @@
{lib, ...}: {
imports = [../devices];
services.syncthing.folders."Movies" = {
label = "Movies";
path = lib.mkDefault "/var/lib/syncthing/Movies/";
id = "3f75o-4x6sq";
ignorePerms = true;
devices = lib.mkDefault [];
enable = false;
};
}

View file

@ -1,17 +0,0 @@
{lib, ...}: {
imports = [../devices];
services.syncthing.folders."Notes" = {
label = "Notes";
path = lib.mkDefault "/var/lib/syncthing/Notes/";
id = "4ggjz-5dyop";
ignorePerms = true;
devices = lib.mkDefault [
"ion"
"legion"
"monarch"
"northstar"
"vanguard"
];
enable = true;
};
}

View file

@ -1,17 +0,0 @@
{lib, ...}: {
imports = [../devices];
services.syncthing.folders."Pictures" = {
label = "Pictures";
path = lib.mkDefault "/var/lib/syncthing/Pictures/";
id = "ziuj8-rm6dn";
ignorePerms = true;
devices = lib.mkDefault [
"ion"
"legion"
"monarch"
"northstar"
"vanguard"
];
enable = true;
};
}

View file

@ -1,12 +0,0 @@
{lib, ...}: {
imports = [../devices];
services.syncthing.folders."Xochitl" = {
label = "Xochitl";
path = lib.mkDefault "/var/lib/syncthing/Xochitl/";
id = "dkcbx-kq7hl";
type = "receiveonly";
ignorePerms = true;
devices = lib.mkDefault ["legion" "remarkable"];
enable = true;
};
}

View file

@ -1,11 +0,0 @@
{lib, ...}: {
imports = [../devices];
services.syncthing.folders."Zotero" = {
label = "Zotero";
path = lib.mkDefault "/var/lib/syncthing/Zotero/";
id = "huyvn-liwc9";
ignorePerms = true;
devices = lib.mkDefault ["ion" "legion"];
enable = true;
};
}