From 46a94cce566a5293ae3fb8876ec3fd916eda9fa8 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Mon, 5 Mar 2018 19:03:46 +0100 Subject: [PATCH] texlive: add option programs.texlive.package This read-only option will hold a reference to the customized texlive package. --- modules/programs/texlive.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/modules/programs/texlive.nix b/modules/programs/texlive.nix index 1d944cef1..e857a0625 100644 --- a/modules/programs/texlive.nix +++ b/modules/programs/texlive.nix @@ -22,13 +22,18 @@ in ''; description = "Extra packages available to Texlive."; }; + + package = mkOption { + type = types.package; + description = "Resulting customized Texlive package."; + readOnly = true; + }; }; }; config = mkIf cfg.enable { - home.packages = [ - (pkgs.texlive.combine (cfg.extraPackages pkgs.texlive)) - ]; - + home.packages = [ cfg.package ]; + programs.texlive.package = + pkgs.texlive.combine (cfg.extraPackages pkgs.texlive); }; }