From 325f982032ceb7716683bea488164ee89eae6bdf Mon Sep 17 00:00:00 2001 From: Tomas Rivera Date: Sun, 17 May 2026 09:46:27 +0200 Subject: [PATCH] latex: separated into new file --- hosts/laptop/configuration.nix | 3 +-- hosts/laptop/home.nix | 38 --------------------------- modules/nixos/latex.nix | 48 ++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 40 deletions(-) create mode 100644 modules/nixos/latex.nix diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index c827644..6d4c295 100755 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -32,6 +32,7 @@ ../../modules/nixos/documentation.nix ../../modules/nixos/IO.nix ../../modules/fonts.nix + ../../modules/latex.nix ]; @@ -157,10 +158,8 @@ glfw # raylib and some dependecies cling # c interpreter used for coding # lsp - texlab clang-tools python311Packages.python-lsp-server - lua-language-server ltex-ls-plus pylint black diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index 776a62a..8e0471b 100755 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -88,44 +88,6 @@ (pkgs.callPackage ../../hostsModules/laptop/qt/qtbatticon.nix {}) #pkgs pkgs.gruvbox-gtk-theme - pkgs.biber - (pkgs.texliveMedium.withPackages ( - ps: - with ps; [ - # these few pkgs are used in the CV template - titlesec # allows creating custom \section - marvosym # some symboles - ebgaramond # Use the EB Garamond font - microtype # To enable letterspacing - fontaxes - # these few pkgs were used for my TM - svg - catchfile - caption - transparent - cfr-lm - svn-prov - nfssext-cfr - hyphenat - csquotes - enumitem - chngcntr - tcolorbox - pdfcol - wrapfig - tocloft - lastpage - biblatex - biblatex-iso690 - libertine - minted - upquote - lipsum - footmisc - #(setq org-latex-compiler "lualatex") - #(setq org-preview-latex-default-process 'dvisvgm) - ] - )) ]; diff --git a/modules/nixos/latex.nix b/modules/nixos/latex.nix new file mode 100644 index 0000000..f69b66d --- /dev/null +++ b/modules/nixos/latex.nix @@ -0,0 +1,48 @@ +{ + pkgs, + ... +}: +{ + environment.systemPackages = with pkgs; [ + texlab + ltex-ls-plus + biber + (pkgs.texliveMedium.withPackages ( + ps: + with ps; [ + # these few pkgs are used in the CV template + titlesec # allows creating custom \section + marvosym # some symboles + ebgaramond # Use the EB Garamond font + microtype # To enable letterspacing + fontaxes + # these few pkgs were used for my TM + svg + catchfile + caption + transparent + cfr-lm + svn-prov + nfssext-cfr + hyphenat + csquotes + enumitem + chngcntr + tcolorbox + pdfcol + wrapfig + tocloft + lastpage + biblatex + biblatex-iso690 + libertine + minted + upquote + lipsum + footmisc + #(setq org-latex-compiler "lualatex") + #(setq org-preview-latex-default-process 'dvisvgm) + ] + )) + ]; +}