syncplay
This commit is contained in:
@@ -50,6 +50,7 @@ in
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
// enableList mkEnabled [
|
// enableList mkEnabled [
|
||||||
|
"syncplay"
|
||||||
"qbittorrent"
|
"qbittorrent"
|
||||||
"sabnzbd"
|
"sabnzbd"
|
||||||
"unpackerr"
|
"unpackerr"
|
||||||
|
|||||||
17
modules/servers/syncplay.nix
Normal file
17
modules/servers/syncplay.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
setup = import ../factories/mkserver.nix { inherit lib config; };
|
||||||
|
cfg = config.my.servers.syncplay;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my.servers.syncplay = setup.mkOptions "sync" "indexer" 8999;
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.syncplay = {
|
||||||
|
inherit (cfg) enable port;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user