21 lines
363 B
Nix
21 lines
363 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
options.custom = with lib; {
|
|
latex = {
|
|
enable = mkEnableOption "Enable LaTeX";
|
|
package = mkPackageOption pkgs [ "texlive" "combined" "scheme-full" ] { };
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.custom.latex.enable {
|
|
home.packages = with pkgs; [
|
|
config.custom.latex.package
|
|
];
|
|
};
|
|
}
|