2017-08-30 23:24:13 +01:00
|
|
|
# dleyna-renderer service.
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.dleyna-renderer = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
2022-07-28 22:19:15 +01:00
|
|
|
description = lib.mdDoc ''
|
2017-08-30 23:24:13 +01:00
|
|
|
Whether to enable dleyna-renderer service, a DBus service
|
|
|
|
for handling DLNA renderers.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.services.dleyna-renderer.enable {
|
|
|
|
environment.systemPackages = [ pkgs.dleyna-renderer ];
|
|
|
|
|
|
|
|
services.dbus.packages = [ pkgs.dleyna-renderer ];
|
|
|
|
};
|
|
|
|
}
|