3 { config, pkgs, lib, ... }:
7 let cfg = config.programs.evince;
13 (mkRenamedOptionModule
14 [ "services" "gnome3" "evince" "enable" ]
15 [ "programs" "evince" "enable" ])
24 enable = mkEnableOption
25 (lib.mdDoc "Evince, the GNOME document viewer");
29 default = pkgs.evince;
30 defaultText = literalExpression "pkgs.evince";
31 description = lib.mdDoc "Evince derivation to use.";
41 config = mkIf config.programs.evince.enable {
43 environment.systemPackages = [ cfg.package ];
45 services.dbus.packages = [ cfg.package ];
47 systemd.packages = [ cfg.package ];