diff --git a/nix/configuration/hosts/odo/default.nix b/nix/configuration/hosts/odo/default.nix index a9c21e2..829ecbe 100644 --- a/nix/configuration/hosts/odo/default.nix +++ b/nix/configuration/hosts/odo/default.nix @@ -42,5 +42,6 @@ me.graphics_card_type = "amd"; me.kanshi.enable = true; me.kubernetes.enable = true; + me.latex.enable = true; me.sway.enable = true; } diff --git a/nix/configuration/roles/latex/default.nix b/nix/configuration/roles/latex/default.nix index d261b78..892ca72 100644 --- a/nix/configuration/roles/latex/default.nix +++ b/nix/configuration/roles/latex/default.nix @@ -4,6 +4,7 @@ pkgs, ... }: + let tex = ( pkgs.texlive.combine { @@ -23,8 +24,22 @@ in { imports = [ ]; - environment.systemPackages = with pkgs; [ - tex - ]; + options.me = { + latex.enable = lib.mkOption { + type = lib.types.bool; + default = false; + example = true; + description = "Whether we want to install latex."; + }; + }; + config = lib.mkIf config.me.latex.enable ( + lib.mkMerge [ + { + environment.systemPackages = with pkgs; [ + tex + ]; + } + ] + ); }