mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
35 lines
815 B
Nix
35 lines
815 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.programs.plotinus;
|
|
in
|
|
{
|
|
meta = {
|
|
maintainers = pkgs.plotinus.meta.maintainers;
|
|
doc = ./plotinus.md;
|
|
};
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
programs.plotinus = {
|
|
enable = lib.mkOption {
|
|
default = false;
|
|
description = ''
|
|
Whether to enable the Plotinus GTK 3 plugin. Plotinus provides a
|
|
popup (triggered by Ctrl-Shift-P) to search the menus of a
|
|
compatible application.
|
|
'';
|
|
type = lib.types.bool;
|
|
};
|
|
};
|
|
};
|
|
|
|
###### implementation
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.sessionVariables.XDG_DATA_DIRS = [ "${pkgs.plotinus}/share/gsettings-schemas/${pkgs.plotinus.name}" ];
|
|
environment.variables.GTK3_MODULES = [ "${pkgs.plotinus}/lib/libplotinus.so" ];
|
|
};
|
|
}
|