nix/home/latex.nix

21 lines
371 B
Nix

{
config,
pkgs,
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
];
};
}