26 lines
567 B
Nix
26 lines
567 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
services.syncthing = {
|
|
enable = true;
|
|
openDefaultPorts = true;
|
|
overrideDevices = true;
|
|
overrideFolders = true;
|
|
settings = let media = "nebula"; in {
|
|
devices.${media} = {
|
|
name = media;
|
|
id = "KCQSN3M-UWBEDE6-SCS5LS7-WFKFLDK-WT5ECNB-3Z47WAM-ZMA52UL-ZNJUYQ7";
|
|
};
|
|
folders.music = {
|
|
enable = true;
|
|
devices = [ media ];
|
|
id = "Music";
|
|
label = "Music";
|
|
path = "~/Music";
|
|
type = "sendonly";
|
|
};
|
|
};
|
|
user = config.constants.userName;
|
|
};
|
|
}
|
|
|