mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
Rework formatting of syncthing folder settings
This commit is contained in:
parent
37acdefd38
commit
11a4bd0bbf
1 changed files with 18 additions and 8 deletions
|
|
@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue