nixos-config/linux/nebula/syncthing.nix

28 lines
691 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 pc = "blitzar"; in {
devices.${pc} = {
name = pc;
2023-11-28 21:22:37 -08:00
id = "KGCBCIZ-GG6KMQ2-FLK5BWW-GLCEDML-5LCI24S-UKO5UWL-HWNCPYX-ZWWD5AQ";
2023-10-09 10:44:07 -07:00
};
folders.music = {
enable = true;
2023-11-28 20:28:32 -08:00
devices = [ pc ];
2023-10-09 10:44:07 -07:00
id = "Music";
label = "Music";
path = "~/Music";
type = "receiveonly";
};
};
user = config.constants.userName;
};
}