Skip to content

Commit

Permalink
Setup versioning for Syncthing folders
Browse files Browse the repository at this point in the history
  • Loading branch information
alapshin committed Jul 31, 2024
1 parent 079d89e commit 1df277a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hosts/carbon/syncthing.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,23 @@ in
id = "documents";
label = "Documents";
devices = [ "carbon" "desktop" "pixel" ];
versioning = {
type = "simple";
params = {
keep = "7";
};
};
};
"${cfg.dataDir}/${username}/syncthing" = {
id = "syncthing";
label = "Syncthing";
devices = [ "carbon" "desktop" "pixel" ];
versioning = {
type = "simple";
params = {
keep = "7";
};
};
};
};
};
Expand Down
12 changes: 12 additions & 0 deletions hosts/desktop/syncthing.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,23 @@ in
id = "documents";
label = "Documents";
devices = [ "carbon" "desktop" "pixel" ];
versioning = {
type = "simple";
params = {
keep = "7";
};
};
};
"${cfg.dataDir}/${username}/syncthing" = {
id = "syncthing";
label = "Syncthing";
devices = [ "carbon" "desktop" "pixel" ];
versioning = {
type = "simple";
params = {
keep = "7";
};
};
};
};
};
Expand Down

0 comments on commit 1df277a

Please sign in to comment.