2020-04-24 23:36:52 +00:00
|
|
|
# Evince.
|
|
|
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
let cfg = config.programs.evince;
|
|
|
|
|
|
|
|
in {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Added 2019-08-09
|
|
|
|
imports = [
|
|
|
|
(mkRenamedOptionModule
|
|
|
|
[ "services" "gnome3" "evince" "enable" ]
|
|
|
|
[ "programs" "evince" "enable" ])
|
|
|
|
];
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
programs.evince = {
|
|
|
|
|
|
|
|
enable = mkEnableOption
|
|
|
|
"Evince, the GNOME document viewer";
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
package = mkOption {
|
|
|
|
type = types.package;
|
|
|
|
default = pkgs.evince;
|
|
|
|
defaultText = literalExpression "pkgs.evince";
|
2022-08-12 12:06:08 +00:00
|
|
|
description = lib.mdDoc "Evince derivation to use.";
|
2021-10-17 09:34:42 +00:00
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf config.programs.evince.enable {
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
environment.systemPackages = [ cfg.package ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
services.dbus.packages = [ cfg.package ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
systemd.packages = [ cfg.package ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|