services.deepin.app-services: add systemd service

https://github.com/linuxdeepin/dde-app-services/pull/45
This commit is contained in:
rewine 2023-09-27 14:50:45 +08:00
parent 0ec84863a0
commit 245ae0f64f
No known key found for this signature in database
GPG key ID: 2964FF5514455F51

View file

@ -25,8 +25,17 @@ with lib;
config = mkIf config.services.deepin.app-services.enable {
environment.systemPackages = [ pkgs.deepin.dde-app-services ];
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" ];