nix/home/latex.nix
2025-03-03 23:10:07 -06:00

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
];
};
}