nixos-config/linux/blitzar/syncthing.nix

27 lines
567 B
Nix
Raw Normal View History

2023-10-09 10:44:07 -07:00
{ config, ... }:
{
services.syncthing = {
enable = true;
openDefaultPorts = true;
overrideDevices = true;
overrideFolders = true;
2023-11-28 20:28:32 -08:00
settings = let media = "nebula"; in {
devices.${media} = {
name = media;
2023-10-09 10:44:07 -07:00
id = "KCQSN3M-UWBEDE6-SCS5LS7-WFKFLDK-WT5ECNB-3Z47WAM-ZMA52UL-ZNJUYQ7";
};
folders.music = {
enable = true;
2023-11-28 20:28:32 -08:00
devices = [ media ];
2023-10-09 10:44:07 -07:00
id = "Music";
label = "Music";
path = "~/Music";
type = "sendonly";
};
};
user = config.constants.userName;
};
}