1 { config, pkgs, lib, ... }:
5 maintainers = lib.teams.deepin.members;
12 services.deepin.dde-api = {
14 enable = lib.mkEnableOption ''
15 the DDE API, which provides some dbus interfaces that is used for screen zone detecting,
16 thumbnail generating, and sound playing in Deepin Desktop Environment
26 config = lib.mkIf config.services.deepin.dde-api.enable {
28 environment.systemPackages = [ pkgs.deepin.dde-api ];
30 services.dbus.packages = [ pkgs.deepin.dde-api ];
32 systemd.packages = [ pkgs.deepin.dde-api ];
34 environment.pathsToLink = [ "/lib/deepin-api" ];
36 users.groups.deepin-sound-player = { };
37 users.users.deepin-sound-player = {
38 description = "Deepin sound player";
39 home = "/var/lib/deepin-sound-player";
41 group = "deepin-sound-player";