Clean up syncthing config, add N0245 config
This commit is contained in:
parent
28264418ed
commit
d01c8a8cc3
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{...}: {services.syncthing.devices."H0615".id = "VVKKUT6-DMNEJ6J-ZI2QREG-SOLG7S5-V2V6WN3-UCQH2EN-6S2XXLS-FKN6KQF";}
|
|
@ -1 +0,0 @@
|
|||
{...}: {services.syncthing.devices."ion".id = "7DD4NPH-6T2ET5A-4FCLFWW-CS6UR2W-IO5XQXC-DM5B2Q4-6X7DGU2-UKKVEAB";}
|
|
@ -1 +0,0 @@
|
|||
{...}: {services.syncthing.devices."J0162".id = "NTMLN4U-RPYURFR-P322MUO-2WJGAAF-CLV3RLL-SDUNLTD-4AXVIWG-GBDY3AF";}
|
|
@ -1 +0,0 @@
|
|||
{...}: {services.syncthing.devices."legion".id = "6OX54CG-EAQMXKA-K7TXB5P-G5A27HB-52JE2FA-XNAYZU6-YMIDBXP-RKPBJQV";}
|
|
@ -1 +0,0 @@
|
|||
{...}: {services.syncthing.devices."monarch".id = "CJSUZQY-67XBLEZ-VKVHQHI-BLEUZNF-G4237AV-AW44CGH-F3JDKXU-CWT3RQZ";}
|
|
@ -1 +0,0 @@
|
|||
{...}: {services.syncthing.devices."northstar".id = "W3QZTFS-BB42JYB-NQBZ5IM-H3WLAUQ-M57I2CP-FALWGEX-JI2ZZOC-QWAX2QQ";}
|
|
@ -1 +0,0 @@
|
|||
{...}: {services.syncthing.devices."remarkable".id = "GHB6JKS-JOA3HHP-TYHB3IJ-GLV26QW-RWRZAMG-XYFGFB6-QLUHDSH-GNPZVAO";}
|
|
@ -1 +0,0 @@
|
|||
{...}: {services.syncthing.devices."vanguard".id = "I366QNQ-D3FTDRX-RNOTXMW-YITZXOF-DSCDMQD-63Q72LI-ME2Y4HZ-T34RMQK";}
|
|
@ -1,10 +0,0 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./Ion.nix
|
||||
./Legion.nix
|
||||
./Monarch.nix
|
||||
./Northstar.nix
|
||||
./Remarkable.nix
|
||||
./Vanguard.nix
|
||||
];
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue