2017-09-01 13:04:59 +00:00
|
|
|
# dleyna-server service.
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.dleyna-server = {
|
2024-08-27 18:43:04 +00:00
|
|
|
enable = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
2017-09-01 13:04:59 +00:00
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Whether to enable dleyna-server service, a DBus service
|
|
|
|
for handling DLNA servers.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
2024-08-27 18:43:04 +00:00
|
|
|
config = lib.mkIf config.services.dleyna-server.enable {
|
2017-09-01 13:04:59 +00:00
|
|
|
environment.systemPackages = [ pkgs.dleyna-server ];
|
|
|
|
|
|
|
|
services.dbus.packages = [ pkgs.dleyna-server ];
|
|
|
|
};
|
|
|
|
}
|