mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
5b2b3b8558
The can potentially mask evaluation errors due to laziness of variable access within.
37 lines
509 B
Nix
37 lines
509 B
Nix
# Evince.
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
let cfg = config.programs.evince;
|
|
|
|
in {
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
programs.evince = {
|
|
|
|
enable = lib.mkEnableOption "Evince, the GNOME document viewer";
|
|
|
|
package = lib.mkPackageOption pkgs "evince" { };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = lib.mkIf config.programs.evince.enable {
|
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
services.dbus.packages = [ cfg.package ];
|
|
|
|
systemd.packages = [ cfg.package ];
|
|
|
|
};
|
|
|
|
}
|