nixos-config/modules/syncthing.nix
Simon Bruder 24db1faff9
syncthing: Do not harcode fuuko’s address
External reachability is not guaranteed in the future.
2022-09-13 18:49:54 +02:00

24 lines
571 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ 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 = {
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
};
}