02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
28 lines
579 B
Nix
28 lines
579 B
Nix
# dleyna-server service.
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
###### interface
|
|
options = {
|
|
services.dleyna-server = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = lib.mdDoc ''
|
|
Whether to enable dleyna-server service, a DBus service
|
|
for handling DLNA servers.
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
|
|
###### implementation
|
|
config = mkIf config.services.dleyna-server.enable {
|
|
environment.systemPackages = [ pkgs.dleyna-server ];
|
|
|
|
services.dbus.packages = [ pkgs.dleyna-server ];
|
|
};
|
|
}
|