hainich: added syncthing
This commit is contained in:
parent
dad94d6e0d
commit
551ec9e916
|
@ -16,6 +16,7 @@
|
|||
./services/docker.nix
|
||||
./services/gitlab-runner.nix
|
||||
./services/lantifa.nix
|
||||
./services/syncthing.nix
|
||||
];
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.version = 2;
|
||||
|
|
34
hosts/hainich/services/syncthing.nix
Normal file
34
hosts/hainich/services/syncthing.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
relay.enable = false;
|
||||
openDefaultPorts = true;
|
||||
declarative = {
|
||||
devices = {
|
||||
txsbcct = {
|
||||
addresses = []; # empty = dynamic
|
||||
id = "A6SRBZL-CP627PX-4QA55B7-QKJXOMO-UJDXQIV-77OK57V-RXO3CUQ-JIHX7AC";
|
||||
};
|
||||
octycs = {
|
||||
addresses = []; # empty = dynamic
|
||||
id = "KIJVGWZ-GRXPAUX-ZOTZDLS-KUKANCC-A2IBZRM-BT3RZK7-5M43O6R-OZD5IQE";
|
||||
};
|
||||
};
|
||||
|
||||
folders = {
|
||||
"/var/lib/syncthing/hacc" = {
|
||||
id = "qt2ly-xvvvs";
|
||||
devices = [ "txsbcct" "octycs" ];
|
||||
type = "receiveonly";
|
||||
versioning = {
|
||||
type = "simple";
|
||||
params.keep = "10";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue