nixpkgs/nixos/modules/services/desktops/dleyna-server.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
569 B
Nix
Raw Normal View History

2017-09-01 13:04:59 +00:00
# dleyna-server service.
{ config, lib, pkgs, ... }:
{
###### interface
options = {
services.dleyna-server = {
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
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 ];
};
}