libsearpc: 3.3-20230626 -> 3.3-20241031 fix build with GCC14 (#368185)
[NixPkgs.git] / nixos / modules / services / desktops / deepin / dde-api.nix
blob9994c4359e9a386e3f4347f9cbb9d28a01c26a83
2   config,
3   pkgs,
4   lib,
5   ...
6 }:
9   meta = {
10     maintainers = lib.teams.deepin.members;
11   };
13   ###### interface
15   options = {
17     services.deepin.dde-api = {
19       enable = lib.mkEnableOption ''
20         the DDE API, which provides some dbus interfaces that is used for screen zone detecting,
21         thumbnail generating, and sound playing in Deepin Desktop Environment
22       '';
24     };
26   };
28   ###### implementation
30   config = lib.mkIf config.services.deepin.dde-api.enable {
32     environment.systemPackages = [ pkgs.deepin.dde-api ];
34     services.dbus.packages = [ pkgs.deepin.dde-api ];
36     systemd.packages = [ pkgs.deepin.dde-api ];
38     environment.pathsToLink = [ "/lib/deepin-api" ];
40     users.groups.deepin-sound-player = { };
41     users.users.deepin-sound-player = {
42       description = "Deepin sound player";
43       home = "/var/lib/deepin-sound-player";
44       createHome = true;
45       group = "deepin-sound-player";
46       isSystemUser = true;
47     };
49   };