initial commit
This commit is contained in:
commit
d58ad9d46d
23 changed files with 3527 additions and 0 deletions
45
base/syncthing.nix
Normal file
45
base/syncthing.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
networking.firewall.allowedTCPPorts = [ 22000 ];
|
||||
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "maya";
|
||||
dataDir = "/home/maya/sync/";
|
||||
configDir = "/home/maya/.config/syncthing";
|
||||
overrideDevices = true;
|
||||
overrideFolders = true;
|
||||
settings = {
|
||||
devices = {
|
||||
"hypermac" = { id = "XVY5YLM-QETCA4H-KT4XBEH-IR4U47O-CJCJ5YM-DPVWQQX-VHEK4MS-GJCMIQ2"; };
|
||||
"adventurer" = { id = "LLKP3BJ-5RBN5KR-63NXUCW-JC4FMAX-QOXTJBK-65OHI7V-OKZQPTD-5FJIIAB"; };
|
||||
"callisto" = { id = "NPXGWEK-JP4C2NM-QZZPBYI-ISAXIZK-ORCNVGO-C4GFRHJ-SWWFQGC-F5JAMQC"; };
|
||||
"traveler" = { id = "JVNNE3V-IMVW2YL-JKEWUJZ-N5PU4NE-3YQDEU7-77ZHIP3-ADW3LAA-NODOVA3"; };
|
||||
};
|
||||
folders = {
|
||||
"General" = {
|
||||
path = "/home/maya/sync/general";
|
||||
devices = [ "callisto" "hypermac" "adventurer" "traveler" ];
|
||||
};
|
||||
"Music" = {
|
||||
path = "/home/maya/Music";
|
||||
devices = [ "callisto" "hypermac" "adventurer" "traveler" ];
|
||||
};
|
||||
"College" = {
|
||||
path = "/home/maya/sync/college";
|
||||
devices = [ "callisto" "hypermac" "adventurer" "traveler" ];
|
||||
versioning = {
|
||||
type = "staggered";
|
||||
params = {
|
||||
cleanInterval = "3600";
|
||||
maxAge = "15768000";
|
||||
};
|
||||
};
|
||||
};
|
||||
"PrusaSlicer" = {
|
||||
path = "/home/maya/.config/PrusaSlicer";
|
||||
devices = [ "callisto" "hypermac" "adventurer" "traveler" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue