Commit 673106d186db

Vincent Demeester <vincent@sbr.pm>
2019-03-24 14:23:48
emacs: add an option to disable texlive
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 7ababe3
Changed files (2)
machines
modules
profiles
machines/shikoku.win.nix
@@ -5,5 +5,6 @@
     ./base.nix
   ];
   profiles.dev.go.enable = true;
+  profiles.emacs.texlive = false;
   home.packages = with pkgs; [ docker ];
 }
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 = {