Files
NixOS/modules/servers/syncplay.nix
Danilo Reyes 0923a38997 syncplay
2025-11-11 11:38:00 -06:00

18 lines
318 B
Nix

{
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;
};
};
}