nix/home/latex.nix
2025-11-19 21:11:11 -06:00

22 lines
381 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
ghostscript
];
};
}