nixos-config/modules/syncthing.nix

27 lines
650 B
Nix
Raw Normal View History

2022-07-01 08:51:54 +02:00
{ config, lib, ... }:
{
services.syncthing = {
enable = lib.mkDefault config.sbruder.gui.enable;
guiAddress = "${config.sbruder.wireguard.home.address}:8384";
openDefaultPorts = true;
user = "simon";
dataDir = "/home/simon";
overrideDevices = false;
devices = {
fuuko = {
addresses = [
"tcp://fuuko.home.sbruder.de:22000"
];
id = "Z2OO5LK-N3UVCRD-QKVKLZ3-3LRXUOH-JENBAKQ-M647E3L-7FL6LIE-74GGHQF";
};
};
overrideFolders = false;
# folders are not managed statically, because the list of devices cant be
# easily generated from the configuration
};
}