tweak(emacs): include LaTeX packages only in graphical environment
This commit is contained in:
parent
77dd81c995
commit
60028bc0a2
1 changed files with 26 additions and 7 deletions
|
@ -1,4 +1,9 @@
|
|||
{ config, pkgs, lib, ... }: {
|
||||
{ config, main, pkgs, lib, ... }:
|
||||
let
|
||||
ifGraphical = lib.optionals main.info.graphical;
|
||||
ifGraphical' = lib.optional main.info.graphical;
|
||||
in
|
||||
{
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
extraPackages = epkgs: with epkgs; [ vterm ];
|
||||
|
@ -14,7 +19,7 @@
|
|||
"${config.xdg.configHome}/emacs/bin"
|
||||
];
|
||||
|
||||
packages = with pkgs; [
|
||||
packages = with pkgs; lib.flatten [
|
||||
clang
|
||||
cmake
|
||||
coreutils
|
||||
|
@ -57,11 +62,25 @@
|
|||
omnisharp-roslyn
|
||||
|
||||
# :lang latex
|
||||
(ifGraphical [
|
||||
(texlive.combine {
|
||||
inherit (texlive)
|
||||
scheme-medium wrapfig capt-of minted fvextra upquote catchfile xstring framed biblatex biblatex-chicago lipsum;
|
||||
scheme-medium
|
||||
|
||||
biblatex
|
||||
biblatex-chicago
|
||||
capt-of minted
|
||||
catchfile
|
||||
framed
|
||||
fvextra
|
||||
lipsum
|
||||
upquote
|
||||
wrapfig
|
||||
xstring
|
||||
;
|
||||
})
|
||||
biber
|
||||
])
|
||||
|
||||
# :lang markdown
|
||||
pandoc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue