aboutsummaryrefslogtreecommitdiff
path: root/modules/home-manager/latex.nix
blob: e479d784c7a5e6ce41b61486694ea081bd961703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  config,
  pkgs,
  lib,
  ...
}:

{
  options.latex.enable = lib.mkEnableOption "Setup latex";
  config = lib.mkIf config.latex.enable {
    programs.texlive = {
      enable = true;
			# See https://mynixos.com/search?q=texlivepackages.collection for more collections
			# and https://mynixos.com/search?q=texlivepackages for more individual packages.
      extraPackages = tpkgs: { inherit (tpkgs) collection-basic collection-latex collection-latexrecommended biblatex; };
    };

    home.packages = with pkgs; [
      biber
    ];

    programs.pandoc = {
      enable = true;
      defaults = {
        pdf-engine = "pdfetex";
      };
    };
  };
}