mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
texlive: add packageSet
option
This commit is contained in:
parent
c12d53dd7c
commit
45f9cb06a9
1 changed files with 9 additions and 2 deletions
|
@ -6,7 +6,8 @@ let
|
||||||
|
|
||||||
cfg = config.programs.texlive;
|
cfg = config.programs.texlive;
|
||||||
|
|
||||||
texlivePkgs = cfg.extraPackages pkgs.texlive;
|
texlive = cfg.packageSet;
|
||||||
|
texlivePkgs = cfg.extraPackages texlive;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
meta.maintainers = [ maintainers.rycee ];
|
meta.maintainers = [ maintainers.rycee ];
|
||||||
|
@ -15,6 +16,12 @@ in {
|
||||||
programs.texlive = {
|
programs.texlive = {
|
||||||
enable = mkEnableOption "TeX Live";
|
enable = mkEnableOption "TeX Live";
|
||||||
|
|
||||||
|
packageSet = mkOption {
|
||||||
|
default = pkgs.texlive;
|
||||||
|
defaultText = literalExample "pkgs.texlive";
|
||||||
|
description = "TeX Live package set to use.";
|
||||||
|
};
|
||||||
|
|
||||||
extraPackages = mkOption {
|
extraPackages = mkOption {
|
||||||
default = tpkgs: { inherit (tpkgs) collection-basic; };
|
default = tpkgs: { inherit (tpkgs) collection-basic; };
|
||||||
defaultText = "tpkgs: { inherit (tpkgs) collection-basic; }";
|
defaultText = "tpkgs: { inherit (tpkgs) collection-basic; }";
|
||||||
|
@ -41,6 +48,6 @@ in {
|
||||||
|
|
||||||
home.packages = [ cfg.package ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
programs.texlive.package = pkgs.texlive.combine texlivePkgs;
|
programs.texlive.package = texlive.combine texlivePkgs;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue