2 { config, lib, pkgs, ... }:
6 maintainers = lib.teams.gnome.members;
11 services.gnome.rygel = {
12 enable = lib.mkOption {
15 Whether to enable Rygel UPnP Mediaserver.
17 You will need to also allow UPnP connections in firewall, see the following [comment](https://github.com/NixOS/nixpkgs/pull/45045#issuecomment-416030795).
19 type = lib.types.bool;
25 config = lib.mkIf config.services.gnome.rygel.enable {
26 environment.systemPackages = [ pkgs.rygel ];
28 services.dbus.packages = [ pkgs.rygel ];
30 systemd.packages = [ pkgs.rygel ];
32 environment.etc."rygel.conf".source = "${pkgs.rygel}/etc/rygel.conf";