27 lines
691 B
Nix
27 lines
691 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 pc = "blitzar"; in {
|
|
devices.${pc} = {
|
|
name = pc;
|
|
id = "KGCBCIZ-GG6KMQ2-FLK5BWW-GLCEDML-5LCI24S-UKO5UWL-HWNCPYX-ZWWD5AQ";
|
|
};
|
|
folders.music = {
|
|
enable = true;
|
|
devices = [ pc ];
|
|
id = "Music";
|
|
label = "Music";
|
|
path = "~/Music";
|
|
type = "receiveonly";
|
|
};
|
|
};
|
|
user = config.constants.userName;
|
|
};
|
|
}
|