mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 15:11:55 -05:00
25 lines
538 B
Nix
25 lines
538 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.alyraffauf.services.syncthing.syncMusic {
|
|
services.syncthing = {
|
|
settings = {
|
|
folders = {
|
|
"music" = {
|
|
id = "6nzmu-z9der";
|
|
path = config.alyraffauf.services.syncthing.musicPath;
|
|
devices = ["lavaridge" "mauville" "petalburg" "rustboro" "wattson"];
|
|
versioning = {
|
|
params.cleanoutDays = "1";
|
|
type = "trashcan";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|