nixos-config/linux/blitzar/syncthing.nix

29 lines
700 B
Nix
Raw Normal View History

2023-10-09 10:44:07 -07:00
{ config, ... }:
{
2023-11-28 21:22:37 -08:00
services.syncthing = let home = config.constants.homeDir; in {
2023-10-09 10:44:07 -07:00
enable = true;
2023-11-28 21:22:37 -08:00
configDir = "${home}/.config/syncthing";
dataDir = "${home}/.local/share/syncthing";
2023-10-09 10:44:07 -07:00
openDefaultPorts = true;
overrideDevices = true;
overrideFolders = true;
2023-11-28 20:28:32 -08:00
settings = let media = "nebula"; in {
devices.${media} = {
name = media;
2023-11-28 21:22:37 -08:00
id = "NJXA5XS-2PSWECD-UHBV7JH-IR2RSWY-PRUPFTZ-AHL7IN6-RXSLZKB-2FUNRQH";
2023-10-09 10:44:07 -07:00
};
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;
};
}