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 = {
|
programs.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = epkgs: with epkgs; [ vterm ];
|
extraPackages = epkgs: with epkgs; [ vterm ];
|
||||||
|
@ -14,7 +19,7 @@
|
||||||
"${config.xdg.configHome}/emacs/bin"
|
"${config.xdg.configHome}/emacs/bin"
|
||||||
];
|
];
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; lib.flatten [
|
||||||
clang
|
clang
|
||||||
cmake
|
cmake
|
||||||
coreutils
|
coreutils
|
||||||
|
@ -57,11 +62,25 @@
|
||||||
omnisharp-roslyn
|
omnisharp-roslyn
|
||||||
|
|
||||||
# :lang latex
|
# :lang latex
|
||||||
(texlive.combine {
|
(ifGraphical [
|
||||||
inherit (texlive)
|
(texlive.combine {
|
||||||
scheme-medium wrapfig capt-of minted fvextra upquote catchfile xstring framed biblatex biblatex-chicago lipsum;
|
inherit (texlive)
|
||||||
})
|
scheme-medium
|
||||||
biber
|
|
||||||
|
biblatex
|
||||||
|
biblatex-chicago
|
||||||
|
capt-of minted
|
||||||
|
catchfile
|
||||||
|
framed
|
||||||
|
fvextra
|
||||||
|
lipsum
|
||||||
|
upquote
|
||||||
|
wrapfig
|
||||||
|
xstring
|
||||||
|
;
|
||||||
|
})
|
||||||
|
biber
|
||||||
|
])
|
||||||
|
|
||||||
# :lang markdown
|
# :lang markdown
|
||||||
pandoc
|
pandoc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue