5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
36 lines
509 B
Nix
36 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 ];
|
|
|
|
};
|
|
|
|
}
|