nixos/deepin/dde-daemon: init
This commit is contained in:
parent
01ce19be2a
commit
a112e1e8ce
|
@ -412,6 +412,7 @@
|
||||||
./services/desktops/bamf.nix
|
./services/desktops/bamf.nix
|
||||||
./services/desktops/blueman.nix
|
./services/desktops/blueman.nix
|
||||||
./services/desktops/cpupower-gui.nix
|
./services/desktops/cpupower-gui.nix
|
||||||
|
./services/desktops/deepin/dde-daemon.nix
|
||||||
./services/desktops/dleyna-renderer.nix
|
./services/desktops/dleyna-renderer.nix
|
||||||
./services/desktops/dleyna-server.nix
|
./services/desktops/dleyna-server.nix
|
||||||
./services/desktops/espanso.nix
|
./services/desktops/espanso.nix
|
||||||
|
|
40
nixos/modules/services/desktops/deepin/dde-daemon.nix
Normal file
40
nixos/modules/services/desktops/deepin/dde-daemon.nix
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
{ 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" ];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue