2019-04-18 16:59:49 +01:00
|
|
|
# deepin
|
|
|
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
services.deepin.core.enable = lib.mkEnableOption "
|
|
|
|
Basic dbus and systemd services, groups and users needed by the
|
|
|
|
Deepin Desktop Environment.
|
|
|
|
";
|
|
|
|
|
2019-04-19 13:47:19 +01:00
|
|
|
services.deepin.deepin-menu.enable = lib.mkEnableOption "
|
|
|
|
DBus service for unified menus in Deepin Desktop Environment.
|
|
|
|
";
|
|
|
|
|
2019-04-18 16:59:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = lib.mkMerge [
|
|
|
|
|
|
|
|
(lib.mkIf config.services.deepin.core.enable {
|
|
|
|
environment.systemPackages = [
|
2019-04-19 13:36:22 +01:00
|
|
|
pkgs.deepin.dde-api
|
2019-04-18 16:59:49 +01:00
|
|
|
pkgs.deepin.dde-daemon
|
|
|
|
];
|
|
|
|
|
|
|
|
services.dbus.packages = [
|
2019-04-19 13:36:22 +01:00
|
|
|
pkgs.deepin.dde-api
|
2019-04-18 16:59:49 +01:00
|
|
|
pkgs.deepin.dde-daemon
|
|
|
|
];
|
|
|
|
|
|
|
|
systemd.packages = [
|
2019-04-19 13:36:22 +01:00
|
|
|
pkgs.deepin.dde-api
|
2019-04-18 16:59:49 +01:00
|
|
|
pkgs.deepin.dde-daemon
|
|
|
|
];
|
|
|
|
|
2019-04-19 13:36:22 +01:00
|
|
|
users.groups.deepin-sound-player = { };
|
|
|
|
|
|
|
|
users.users.deepin-sound-player = {
|
|
|
|
description = "Deepin sound player";
|
|
|
|
group = "deepin-sound-player";
|
|
|
|
isSystemUser = true;
|
|
|
|
};
|
|
|
|
|
2019-04-19 15:04:55 +01:00
|
|
|
users.groups.deepin-daemon = { };
|
2019-04-18 16:59:49 +01:00
|
|
|
|
2019-04-19 15:04:55 +01:00
|
|
|
users.users.deepin-daemon = {
|
2019-04-18 16:59:49 +01:00
|
|
|
description = "Deepin daemon user";
|
2019-04-19 15:04:55 +01:00
|
|
|
group = "deepin-daemon";
|
2019-04-18 16:59:49 +01:00
|
|
|
isSystemUser = true;
|
|
|
|
};
|
2019-04-19 13:47:19 +01:00
|
|
|
|
|
|
|
services.deepin.deepin-menu.enable = true;
|
|
|
|
})
|
|
|
|
|
|
|
|
(lib.mkIf config.services.deepin.deepin-menu.enable {
|
|
|
|
services.dbus.packages = [ pkgs.deepin.deepin-menu ];
|
2019-04-18 16:59:49 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
}
|