summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Parri <simonparri@ganzeria.com>2025-10-09 10:52:50 -0500
committerSimon Parri <simonparri@ganzeria.com>2025-10-09 10:52:50 -0500
commit3d6582a5e81c2a3be43f1ce1110c5b0939d707af (patch)
tree75aa7666a431404f7ddcb08aca9922bff13accc4
parenta68671978764fab26968ec101bb819a3e969dd07 (diff)
downloadnixos-config-3d6582a5e81c2a3be43f1ce1110c5b0939d707af.tar.gz
nixos-config-3d6582a5e81c2a3be43f1ce1110c5b0939d707af.zip
modules/sets: Add TeX set and use it
-rw-r--r--hosts/thyme/packages.nix1
-rw-r--r--hosts/tomato/packages.nix1
-rw-r--r--modules/sets.nix26
3 files changed, 27 insertions, 1 deletions
diff --git a/hosts/thyme/packages.nix b/hosts/thyme/packages.nix
index 9c9a0a1..b9ec896 100644
--- a/hosts/thyme/packages.nix
+++ b/hosts/thyme/packages.nix
@@ -20,6 +20,7 @@
sound.tools = true;
sync.tools = true;
sys.tools = true;
+ tex.full = true;
writing.tools = true;
www.browser = true;
};
diff --git a/hosts/tomato/packages.nix b/hosts/tomato/packages.nix
index 5c17218..646222b 100644
--- a/hosts/tomato/packages.nix
+++ b/hosts/tomato/packages.nix
@@ -27,6 +27,7 @@ in
sound.tools = true;
sync.tools = true;
sys.tools = true;
+ tex.full = true;
writing.tools = true;
www.browser = true;
wine.base = true;
diff --git a/modules/sets.nix b/modules/sets.nix
index 3e86df2..1f81e3d 100644
--- a/modules/sets.nix
+++ b/modules/sets.nix
@@ -45,6 +45,7 @@ in
sound.tools = lib.mkEnableOption "package set";
sync.tools = lib.mkEnableOption "package set";
sys.tools = lib.mkEnableOption "package set";
+ tex.full = lib.mkEnableOption "package set";
writing.tools = lib.mkEnableOption "package set";
www.browser = lib.mkEnableOption "package set";
wine.base = lib.mkEnableOption "package set";
@@ -218,7 +219,30 @@ in
fuse.dev
stdenv.cc
];
- };
+ } ++
+ lib.optional cfg.tex.full
+ (pkgs.texlive.combine {
+ inherit (pkgs.texlive)
+ scheme-basic
+ dvisvgm dvipng
+ # from `org-latex-default-packages-alist'
+ fontspec
+ inputenc
+ graphicx
+ longtable
+ wrapfig
+ rotating
+ ulem
+ amsmath
+ amssymb
+ capt-of
+ hyperref
+ # extra classes
+ beamer leaflet
+ # chemistry
+ chemfig;
+ });
+
programs.mosh.enable = cfg.cli.tools.full;
programs.zsh = {
enable = cfg.cli.shell;