feat: add syncthing
add codes fix: change restic directories syncthing
This commit is contained in:
commit
a9df4938e3
6 changed files with 76 additions and 2 deletions
|
|
@ -28,6 +28,7 @@
|
|||
../../common/virtualization/libvirt.nix
|
||||
../../common/nixos/sysctl/default.nix
|
||||
|
||||
./syncthing.nix
|
||||
./auditd.nix
|
||||
./kernel.nix
|
||||
./sysctl.nix
|
||||
|
|
|
|||
60
hosts/grymforge/syncthing.nix
Normal file
60
hosts/grymforge/syncthing.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
config,
|
||||
user,
|
||||
...
|
||||
}: {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
dataDir = "/home/gwg313";
|
||||
openDefaultPorts = true;
|
||||
configDir = "/home/gwg313/.config/syncthing";
|
||||
user = "gwg313";
|
||||
group = "users";
|
||||
guiAddress = "127.0.0.1:8384";
|
||||
|
||||
overrideDevices = true;
|
||||
overrideFolders = true;
|
||||
|
||||
settings = {
|
||||
devices = {
|
||||
"candlekeep" = {id = "762A3TK-Z3ZX6DG-V4VASMJ-H6DJHE5-PBD6YZQ-MPILUWT-E7EY4O7-4EAPHAX";};
|
||||
};
|
||||
|
||||
folders = {
|
||||
"repos" = {
|
||||
path = "/home/gwg313/repos";
|
||||
devices = ["candlekeep"];
|
||||
versioning = {
|
||||
type = "staggered";
|
||||
params = {
|
||||
cleanInterval = "3600";
|
||||
maxAge = "15768000";
|
||||
};
|
||||
};
|
||||
};
|
||||
"documents" = {
|
||||
path = "/home/gwg313/Documents";
|
||||
devices = ["candlekeep"];
|
||||
versioning = {
|
||||
type = "staggered";
|
||||
params = {
|
||||
cleanInterval = "3600";
|
||||
maxAge = "15768000";
|
||||
};
|
||||
};
|
||||
};
|
||||
"obsidian" = {
|
||||
path = "/home/gwg313/vault";
|
||||
devices = ["candlekeep"];
|
||||
versioning = {
|
||||
type = "staggered";
|
||||
params = {
|
||||
cleanInterval = "3600";
|
||||
maxAge = "15768000";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue