dotfiles/nixos/syncthing.nix

21 lines
675 B
Nix
Raw Normal View History

2022-03-10 12:25:23 +00:00
{ config, pkgs, inputs, ... }: {
2019-11-12 22:47:38 +00:00
services.syncthing = {
enable = true;
user = "cyryl";
2022-07-22 13:18:56 +01:00
dataDir = "/home/cyryl/";
2019-11-12 22:47:38 +00:00
openDefaultPorts = true;
2022-03-10 12:25:23 +00:00
package =
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".syncthing;
2022-07-22 13:18:56 +01:00
extraOptions = {
options = {
listenAddresses = [
"tcp://${config.networking.hostName}.raptor-carp.ts.net:22000"
"quic://${config.networking.hostName}.raptor-carp.ts.net:22000"
"relay://vpsfree1.raptor-carp.ts.net:22067/?id=BVJ54DH-VCLK4C7-SKNGOZP-36K76IE-UEEKLVF-WA5QHN6-6TK2ICW-HSDI6Q7"
"dynamic+https://relays.syncthing.net/endpoint"
];
};
};
2019-11-12 22:47:38 +00:00
};
}