2023-05-24 13:37:59 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = teams.deepin.members;
|
|
|
|
};
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
services.deepin.app-services = {
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
enable = mkEnableOption "service collection of DDE applications, including dconfig-center";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf config.services.deepin.app-services.enable {
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
users.groups.dde-dconfig-daemon = { };
|
|
|
|
users.users.dde-dconfig-daemon = {
|
|
|
|
description = "Dconfig daemon user";
|
|
|
|
home = "/var/lib/dde-dconfig-daemon";
|
|
|
|
createHome = true;
|
|
|
|
group = "dde-dconfig-daemon";
|
|
|
|
isSystemUser = true;
|
|
|
|
};
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
environment.systemPackages = [ pkgs.deepin.dde-app-services ];
|
|
|
|
systemd.packages = [ pkgs.deepin.dde-app-services ];
|
2023-05-24 13:37:59 +00:00
|
|
|
services.dbus.packages = [ pkgs.deepin.dde-app-services ];
|
|
|
|
|
|
|
|
environment.pathsToLink = [ "/share/dsg" ];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|