nixconfigs/home/modules/latex.nix
Trolli Schmittlauch b0093ef58f remove deprecated system passing
fixes
'system' has been renamed to/replaced by 'stdenv.hostPlatform.system'

Wherever possible, it's best to reference the hostPlatform of the
nixpkgs instance directly via `config`. This is only possible in NixOS
systems though, for standalon home-manager configs we need to get that
value through `pkgs.stdenv`.
2025-12-29 02:25:50 +01:00

47 lines
826 B
Nix

{
pkgs,
inputs,
config,
lib,
...
}:
with pkgs;
let
latexGuiTools = [
texmaker
kile
biber
];
in
{
options.schmittlauch.latex.guiTools = lib.mkEnableOption "Install GUI LaTeX tools like editors";
config.home.packages = [
(texlive.combine {
inherit (texlive)
scheme-medium
xetex
luatex
unicode-math
fontspec
collection-binextra
collection-fontsrecommended
collection-latex
collection-latexextra
collection-latexrecommended
collection-langgerman
moderncv
fontawesome5
academicons
acronym
ccicons
fontawesome
biblatex
logreq
koma-script
;
})
]
++ lib.optionals config.schmittlauch.latex.guiTools latexGuiTools;
}