nixpkgs/nixos/modules/programs/evince.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
508 B
Nix
Raw Normal View History

2019-03-26 12:08:58 +01:00
# Evince.
{ config, pkgs, lib, ... }:
with lib;
let cfg = config.programs.evince;
in {
2019-03-26 12:08:58 +01:00
###### interface
options = {
2019-08-09 12:26:15 -04:00
programs.evince = {
2019-03-26 12:08:58 +01:00
enable = mkEnableOption "Evince, the GNOME document viewer";
2019-03-26 12:08:58 +01:00
package = mkPackageOption pkgs "evince" { };
2019-03-26 12:08:58 +01:00
};
};
###### implementation
2019-08-09 12:26:15 -04:00
config = mkIf config.programs.evince.enable {
2019-03-26 12:08:58 +01:00
environment.systemPackages = [ cfg.package ];
2019-03-26 12:08:58 +01:00
services.dbus.packages = [ cfg.package ];
2019-03-26 12:08:58 +01:00
systemd.packages = [ cfg.package ];
2019-03-26 12:08:58 +01:00
};
}