2020-04-24 23:36:52 +00:00
|
|
|
# rygel service.
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
meta = {
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = lib.teams.gnome.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
options = {
|
2021-05-20 23:08:51 +00:00
|
|
|
services.gnome.rygel = {
|
2024-05-15 15:35:15 +00:00
|
|
|
enable = lib.mkOption {
|
2020-04-24 23:36:52 +00:00
|
|
|
default = false;
|
2024-04-21 15:54:59 +00:00
|
|
|
description = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
Whether to enable Rygel UPnP Mediaserver.
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
You will need to also allow UPnP connections in firewall, see the following [comment](https://github.com/NixOS/nixpkgs/pull/45045#issuecomment-416030795).
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2024-05-15 15:35:15 +00:00
|
|
|
type = lib.types.bool;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
2024-05-15 15:35:15 +00:00
|
|
|
config = lib.mkIf config.services.gnome.rygel.enable {
|
2021-05-20 23:08:51 +00:00
|
|
|
environment.systemPackages = [ pkgs.gnome.rygel ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
services.dbus.packages = [ pkgs.gnome.rygel ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
systemd.packages = [ pkgs.gnome.rygel ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
environment.etc."rygel.conf".source = "${pkgs.gnome.rygel}/etc/rygel.conf";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|