2019-03-26 11:08:58 +00:00
|
|
|
# Evince.
|
|
|
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
2021-10-07 04:52:48 +01:00
|
|
|
let cfg = config.programs.evince;
|
|
|
|
|
|
|
|
in {
|
2019-03-26 11:08:58 +00:00
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
2019-08-09 17:26:15 +01:00
|
|
|
programs.evince = {
|
2019-03-26 11:08:58 +00:00
|
|
|
|
2024-04-30 17:57:01 +01:00
|
|
|
enable = lib.mkEnableOption "Evince, the GNOME document viewer";
|
2019-03-26 11:08:58 +00:00
|
|
|
|
2024-04-30 17:57:01 +01:00
|
|
|
package = lib.mkPackageOption pkgs "evince" { };
|
2021-10-07 04:52:48 +01:00
|
|
|
|
2019-03-26 11:08:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
2024-04-30 17:57:01 +01:00
|
|
|
config = lib.mkIf config.programs.evince.enable {
|
2019-03-26 11:08:58 +00:00
|
|
|
|
2021-10-07 04:52:48 +01:00
|
|
|
environment.systemPackages = [ cfg.package ];
|
2019-03-26 11:08:58 +00:00
|
|
|
|
2021-10-07 04:52:48 +01:00
|
|
|
services.dbus.packages = [ cfg.package ];
|
2019-03-26 11:08:58 +00:00
|
|
|
|
2021-10-07 04:52:48 +01:00
|
|
|
systemd.packages = [ cfg.package ];
|
2019-03-26 11:08:58 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|