mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
29 lines
634 B
Nix
29 lines
634 B
Nix
{ config, ... }:
|
|
{
|
|
sops.secrets.syncthing_key = {};
|
|
sops.secrets.syncthing_cert = {};
|
|
|
|
services.syncthing = {
|
|
enable = true;
|
|
openDefaultPorts = true;
|
|
dataDir = "/srv/data";
|
|
key = config.sops.secrets.syncthing_key.path;
|
|
cert = config.sops.secrets.syncthing_cert.path;
|
|
extraOptions = {
|
|
options = {
|
|
localAnnounceEnabled = false;
|
|
};
|
|
};
|
|
devices = {
|
|
"thinkman" = {
|
|
id = "KXSCPX3-JCCFZM4-S2LQZZL-3AM6WRL-IPNWVG2-IB5FEDJ-YYFUIRR-VMDO3AL";
|
|
};
|
|
};
|
|
folders = {
|
|
"Music" = {
|
|
path = "music";
|
|
devices = [ "thinkman" ];
|
|
};
|
|
};
|
|
};
|
|
}
|