28 lines
700 B
Nix
28 lines
700 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
services.syncthing = let home = config.constants.homeDir; in {
|
|
enable = true;
|
|
configDir = "${home}/.config/syncthing";
|
|
dataDir = "${home}/.local/share/syncthing";
|
|
openDefaultPorts = true;
|
|
overrideDevices = true;
|
|
overrideFolders = true;
|
|
settings = let media = "nebula"; in {
|
|
devices.${media} = {
|
|
name = media;
|
|
id = "NJXA5XS-2PSWECD-UHBV7JH-IR2RSWY-PRUPFTZ-AHL7IN6-RXSLZKB-2FUNRQH";
|
|
};
|
|
folders.music = {
|
|
enable = true;
|
|
devices = [ media ];
|
|
id = "Music";
|
|
label = "Music";
|
|
path = "~/Music";
|
|
type = "sendonly";
|
|
};
|
|
};
|
|
user = config.constants.userName;
|
|
};
|
|
}
|
|
|