1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 10:49:48 +01:00

texlive: add option programs.texlive.package

This read-only option will hold a reference to the customized texlive
package.
This commit is contained in:
Robert Helgesson 2018-03-05 19:03:46 +01:00
parent bc50202d0d
commit 46a94cce56
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

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