25 lines
558 B
Nix
25 lines
558 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
services.syncthing = {
|
|
enable = true;
|
|
openDefaultPorts = true;
|
|
overrideDevices = true;
|
|
overrideFolders = true;
|
|
settings = let pc = "blitzar"; in {
|
|
devices.${pc} = {
|
|
name = pc;
|
|
id = "JQQYTRP-GEJITYH-NSHUZ2T-YWS5XDC-7R6E47Z-NUXON4D-4QR77VU-AE4Q3AR";
|
|
};
|
|
folders.music = {
|
|
enable = true;
|
|
devices = [ pc ];
|
|
id = "Music";
|
|
label = "Music";
|
|
path = "~/Music";
|
|
type = "receiveonly";
|
|
};
|
|
};
|
|
user = config.constants.userName;
|
|
};
|
|
}
|