mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
29 lines
569 B
Nix
29 lines
569 B
Nix
# dleyna-server service.
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
###### interface
|
|
options = {
|
|
services.dleyna-server = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = ''
|
|
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 ];
|
|
};
|
|
}
|