grafana-alloy: don't build the frontend twice
[NixPkgs.git] / nixos / modules / services / desktops / deepin / deepin-anything.nix
blob4e88a789551b93286e96eb7528b10a673a7fb873
1 { config, pkgs, lib, ... }:
5   meta = {
6     maintainers = lib.teams.deepin.members;
7   };
9   options = {
11     services.deepin.deepin-anything = {
13       enable = lib.mkEnableOption "deepin anything file search tool";
15     };
17   };
19   config = lib.mkIf config.services.deepin.dde-api.enable {
20     environment.systemPackages = [ pkgs.deepin.deepin-anything ];
22     services.dbus.packages = [ pkgs.deepin.deepin-anything ];
24     users.groups.deepin-anything = { };
26     users.users.deepin-anything = {
27       description = "Deepin Anything Server";
28       home = "/var/lib/deepin-anything";
29       createHome = true;
30       group = "deepin-anything";
31       isSystemUser = true;
32     };
34     boot.extraModulePackages = [ config.boot.kernelPackages.deepin-anything-module ];
35     boot.kernelModules = [ "vfs_monitor" ];
36   };