1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/nixos/modules/programs/evince.nix

43 lines
582 B
Nix
Raw Normal View History

2019-03-26 11:08:58 +00:00
# Evince.
{ config, pkgs, lib, ... }:
with lib;
{
2019-08-09 17:26:15 +01:00
# Added 2019-08-09
imports = [
(mkRenamedOptionModule
[ "services" "gnome3" "evince" "enable" ]
[ "programs" "evince" "enable" ])
];
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
enable = mkEnableOption
2019-08-09 17:26:15 +01:00
"Evince, the GNOME document viewer";
2019-03-26 11:08:58 +00:00
};
};
###### implementation
2019-08-09 17:26:15 +01:00
config = mkIf config.programs.evince.enable {
2019-03-26 11:08:58 +00:00
environment.systemPackages = [ pkgs.evince ];
services.dbus.packages = [ pkgs.evince ];
systemd.packages = [ pkgs.evince ];
};
}