504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
45 lines
896 B
Nix
45 lines
896 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
meta = {
|
|
maintainers = teams.deepin.members;
|
|
};
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.deepin.app-services = {
|
|
|
|
enable = mkEnableOption (lib.mdDoc "service collection of DDE applications, including dconfig-center");
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.services.deepin.app-services.enable {
|
|
|
|
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;
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.deepin.dde-app-services ];
|
|
systemd.packages = [ pkgs.deepin.dde-app-services ];
|
|
services.dbus.packages = [ pkgs.deepin.dde-app-services ];
|
|
|
|
environment.pathsToLink = [ "/share/dsg" ];
|
|
|
|
};
|
|
|
|
}
|