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); }; }