2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
40 lines
660 B
Nix
40 lines
660 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
meta = {
|
|
maintainers = teams.deepin.members;
|
|
};
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.deepin.dde-daemon = {
|
|
|
|
enable = mkEnableOption (lib.mdDoc "daemon for handling the deepin session settings");
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.services.deepin.dde-daemon.enable {
|
|
|
|
environment.systemPackages = [ pkgs.deepin.dde-daemon ];
|
|
|
|
services.dbus.packages = [ pkgs.deepin.dde-daemon ];
|
|
|
|
services.udev.packages = [ pkgs.deepin.dde-daemon ];
|
|
|
|
systemd.packages = [ pkgs.deepin.dde-daemon ];
|
|
|
|
environment.pathsToLink = [ "/lib/deepin-daemon" ];
|
|
|
|
};
|
|
|
|
}
|