Rework formatting of syncthing folder settings

This commit is contained in:
SebastianStork 2024-03-25 15:10:24 +01:00
parent 37acdefd38
commit 11a4bd0bbf

View file

@ -23,35 +23,45 @@
}; };
folders = let folders = let
devices = ["seb-desktop" "dell-laptop"]; allDevices = ["seb-desktop" "dell-laptop"];
versioning = { staggeredVersioning = {
type = "staggered"; type = "staggered";
params = { params = {
cleanInterval = "3600"; # 1 hour in seconds cleanInterval = "3600"; # 1 hour in seconds
maxAge = "15552000"; # 180 days in seconds maxAge = "15552000"; # 180 days in seconds
}; };
}; };
ignorePerms = false;
in { in {
Documents = { Documents = {
path = "/home/seb/Documents"; path = "/home/seb/Documents";
inherit devices versioning ignorePerms; devices = allDevices;
versioning = staggeredVersioning;
ignorePerms = false;
}; };
Downloads = { Downloads = {
path = "/home/seb/Downloads"; path = "/home/seb/Downloads";
inherit devices versioning ignorePerms; devices = allDevices;
versioning = staggeredVersioning;
ignorePerms = false;
}; };
Pictures = { Pictures = {
path = "/home/seb/Pictures"; path = "/home/seb/Pictures";
inherit devices versioning ignorePerms; devices = allDevices;
versioning = staggeredVersioning;
ignorePerms = false;
}; };
Music = { Music = {
path = "/home/seb/Music"; path = "/home/seb/Music";
inherit devices versioning ignorePerms; devices = allDevices;
versioning = staggeredVersioning;
ignorePerms = false;
}; };
Videos = { Videos = {
path = "/home/seb/Videos"; path = "/home/seb/Videos";
inherit devices versioning ignorePerms; devices = allDevices;
versioning = staggeredVersioning;
ignorePerms = false;
};
}; };
}; };
}; };