home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 673106d186db7255221bb08187735d41b3267dcb
parent 7ababe30091412d2310feb06c6a6730c84684171
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Sun, 24 Mar 2019 14:23:48 +0100

emacs: add an option to disable texlive

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mmachines/shikoku.win.nix | 1+
Mmodules/profiles/emacs.nix | 9++++++++-
2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/machines/shikoku.win.nix b/machines/shikoku.win.nix @@ -5,5 +5,6 @@ ./base.nix ]; profiles.dev.go.enable = true; + profiles.emacs.texlive = false; home.packages = with pkgs; [ docker ]; } diff --git a/modules/profiles/emacs.nix b/modules/profiles/emacs.nix @@ -22,6 +22,11 @@ in description = "Enable Xwidgets in emacs build"; type = types.bool; }; + texlive = mkOption { + default = true; + description = "Enable Texlive"; + type = types.bool; + }; }; }; config = mkIf cfg.enable (mkMerge [ @@ -31,7 +36,6 @@ in ditaa graphviz pandoc - texlive.combined.scheme-full zip ]; programs.emacs = { @@ -202,6 +206,9 @@ in allow-emacs-pinentry ''; }) + (mkIf cfg.texlive { + home.packages = with pkgs; [ texlive.combined.scheme-full ]; + }) (mkIf cfg.daemonService { systemd.user.services.emacs = { Unit = {