nixos-config/linux/nebula/syncthing.nix

26 lines
558 B
Nix
Raw Normal View History

2023-10-09 10:44:07 -07:00
{ config, ... }:
{
services.syncthing = {
enable = true;
openDefaultPorts = true;
overrideDevices = true;
overrideFolders = true;
2023-11-28 20:28:32 -08:00
settings = let pc = "blitzar"; in {
devices.${pc} = {
name = pc;
2023-10-09 10:44:07 -07:00
id = "JQQYTRP-GEJITYH-NSHUZ2T-YWS5XDC-7R6E47Z-NUXON4D-4QR77VU-AE4Q3AR";
};
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;
};
}