typioca: 2.7.0 -> 2.8.0
[NixPkgs.git] / nixos / modules / programs / plotinus.nix
blobc2b6884d6490dfadcc5681138aa786a5c9d0c2d4
1 { config, lib, pkgs, ... }:
3 with lib;
5 let
6   cfg = config.programs.plotinus;
7 in
9   meta = {
10     maintainers = pkgs.plotinus.meta.maintainers;
11     doc = ./plotinus.md;
12   };
14   ###### interface
16   options = {
17     programs.plotinus = {
18       enable = mkOption {
19         default = false;
20         description = lib.mdDoc ''
21           Whether to enable the Plotinus GTK 3 plugin. Plotinus provides a
22           popup (triggered by Ctrl-Shift-P) to search the menus of a
23           compatible application.
24         '';
25         type = types.bool;
26       };
27     };
28   };
30   ###### implementation
32   config = mkIf cfg.enable {
33     environment.sessionVariables.XDG_DATA_DIRS = [ "${pkgs.plotinus}/share/gsettings-schemas/${pkgs.plotinus.name}" ];
34     environment.variables.GTK3_MODULES = [ "${pkgs.plotinus}/lib/libplotinus.so" ];
35   };