Syncthing!
This commit is contained in:
parent
c9bf24c49b
commit
07cfb35e1d
7 changed files with 72 additions and 8 deletions
hosts/nixos/common/optional
37
hosts/nixos/common/optional/syncthing.nix
Normal file
37
hosts/nixos/common/optional/syncthing.nix
Normal 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.
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue