1
Fork 0

Syncthing!

This commit is contained in:
Matei Adriel 2023-07-07 21:25:05 +02:00
parent c9bf24c49b
commit 07cfb35e1d
No known key found for this signature in database
7 changed files with 72 additions and 8 deletions
hosts/nixos/common/optional

View file

@ -0,0 +1,37 @@
{
services.syncthing = {
enable = true;
openDefaultPorts = true;
configDir = "/home/adrielus/.config/syncthing";
dataDir = "/persist/data/syncthing";
user = "adrielus";
group = "syncthing";
# guiAddress = "0.0.0.0:8384"; # TODO: put this behind nginx
overrideDevices = true;
overrideFolders = true;
devices = {
"enceladus" = { id = "QWOAERM-V2FNXPI-TB7NFUS-LKW7JTB-IZY4OEZ-FYDPJNP-6IKPW4Y-YREXDQM"; };
};
folders = {
"stellar-sanctum" = {
path = "/home/adrielus/Projects/stellar-sanctum/";
devices = [ "enceladus" ];
# TODO: remove this once I switch to zfs
versioning = {
type = "staggered";
params = {
cleanInterval = "3600"; # 1 hour in seconds
maxAge = "604800"; # 14 days in seconds.
};
};
};
};
};
}