diff options
author | José Romildo Malaquias <malaquias@gmail.com> | 2019-05-05 16:42:58 -0300 |
---|---|---|
committer | José Romildo Malaquias <malaquias@gmail.com> | 2019-05-05 18:01:28 -0300 |
commit | 78f176158ca898b61f8585ab9eedd558b2574c1a (patch) | |
tree | b85522b4b8bfc15c92a147e83345034d79ce71ae /nixos | |
parent | 8ed9f9fedfb81a40b09ccbc23be16726c8ea9253 (diff) |
nixos/deepin: add deepin-anything service
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/desktops/deepin/deepin.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nixos/modules/services/desktops/deepin/deepin.nix b/nixos/modules/services/desktops/deepin/deepin.nix index 988b9b91cfd4..7ec326e599e5 100644 --- a/nixos/modules/services/desktops/deepin/deepin.nix +++ b/nixos/modules/services/desktops/deepin/deepin.nix @@ -36,6 +36,7 @@ pkgs.deepin.dde-daemon pkgs.deepin.dde-dock pkgs.deepin.dde-session-ui + pkgs.deepin.deepin-anything pkgs.deepin.deepin-image-viewer pkgs.deepin.deepin-screenshot ]; @@ -46,6 +47,7 @@ pkgs.deepin.dde-daemon pkgs.deepin.dde-dock pkgs.deepin.dde-session-ui + pkgs.deepin.deepin-anything pkgs.deepin.deepin-image-viewer pkgs.deepin.deepin-screenshot ]; @@ -53,8 +55,13 @@ systemd.packages = [ pkgs.deepin.dde-api pkgs.deepin.dde-daemon + pkgs.deepin.deepin-anything ]; + boot.extraModulePackages = [ config.boot.kernelPackages.deepin-anything ]; + + boot.kernelModules = [ "vfs_monitor" ]; + users.groups.deepin-sound-player = { }; users.users.deepin-sound-player = { @@ -71,6 +78,22 @@ isSystemUser = true; }; + users.groups.deepin_anything_server = { }; + + users.users.deepin_anything_server = { + description = "Deepin Anything Server"; + group = "deepin_anything_server"; + isSystemUser = true; + }; + + security.pam.services.deepin-auth-keyboard.text = '' + # original at ${pkgs.deepin.dde-daemon}/etc/pam.d/deepin-auth-keyboard + auth [success=2 default=ignore] pam_lsass.so + auth [success=1 default=ignore] pam_unix.so nullok_secure try_first_pass + auth requisite pam_deny.so + auth required pam_permit.so + ''; + environment.etc = { "polkit-1/localauthority/10-vendor.d/com.deepin.api.device.pkla".source = "${pkgs.deepin.dde-api}/etc/polkit-1/localauthority/10-vendor.d/com.deepin.api.device.pkla"; "polkit-1/localauthority/10-vendor.d/com.deepin.daemon.Accounts.pkla".source = "${pkgs.deepin.dde-daemon}/etc/polkit-1/localauthority/10-vendor.d/com.deepin.daemon.Accounts.pkla"; |