43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ config, pkgs, inputs, ... }: {
|
|
services.syncthing = {
|
|
enable = true;
|
|
user = "cyryl";
|
|
dataDir = "/home/cyryl/";
|
|
openDefaultPorts = true;
|
|
package =
|
|
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".syncthing;
|
|
overrideDevices = false;
|
|
devices = {
|
|
"OnePlus9" = {
|
|
id = "2UVDAHX-IWQEBLF-6VOYLWO-MYQBMO2-62QPM76-CFYPPZW-CWVIBZF-JEUS4QZ";
|
|
};
|
|
};
|
|
folders = {
|
|
"/home/cyryl/vaults" = {
|
|
id = "vaults";
|
|
label = "vaults";
|
|
devices = [ "OnePlus9" ];
|
|
};
|
|
"/home/cyryl/documents" = {
|
|
id = "documents";
|
|
label = "documents";
|
|
devices = [ "OnePlus9" ];
|
|
};
|
|
"/home/cyryl/camera" = {
|
|
id = "camera";
|
|
label = "camera";
|
|
devices = [ "OnePlus9" ];
|
|
};
|
|
};
|
|
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"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|