mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
texlive: add option programs.texlive.package
This read-only option will hold a reference to the customized texlive
package.
(cherry picked from commit 46a94cce56)
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user