2018-08-15 10:16:39 +01:00
|
|
|
# rygel service.
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
2020-04-02 01:16:24 +01:00
|
|
|
meta = {
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
|
2018-08-15 10:16:39 +01:00
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.gnome3.rygel = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Whether to enable Rygel UPnP Mediaserver.
|
|
|
|
|
|
|
|
You will need to also allow UPnP connections in firewall, see the following <link xlink:href="https://github.com/NixOS/nixpkgs/pull/45045#issuecomment-416030795">comment</link>.
|
|
|
|
'';
|
|
|
|
type = types.bool;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.services.gnome3.rygel.enable {
|
|
|
|
environment.systemPackages = [ pkgs.gnome3.rygel ];
|
|
|
|
|
|
|
|
services.dbus.packages = [ pkgs.gnome3.rygel ];
|
|
|
|
|
|
|
|
systemd.packages = [ pkgs.gnome3.rygel ];
|
2020-03-26 14:37:25 +00:00
|
|
|
|
2020-03-26 23:29:08 +00:00
|
|
|
environment.etc."rygel.conf".source = "${pkgs.gnome3.rygel}/etc/rygel.conf";
|
2018-08-15 10:16:39 +01:00
|
|
|
};
|
|
|
|
}
|