diff --git a/legacy/modules/tex.nix b/legacy/modules/tex.nix deleted file mode 100644 index 7bcde83..0000000 --- a/legacy/modules/tex.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ config, pkgs, ... }: -{ - environment.systemPackages = with pkgs; [ - biber - pdfpc - qtikz - texlive.combined.scheme-full - texstudio - ]; -} diff --git a/machines/thinkman/profiles.nix b/machines/thinkman/profiles.nix index d755aa4..1310532 100644 --- a/machines/thinkman/profiles.nix +++ b/machines/thinkman/profiles.nix @@ -6,6 +6,7 @@ in { my.profiles = { android.enable = true; + latex.enable = true; printing.enable = true; }; } diff --git a/profiles/default.nix b/profiles/default.nix index 2473db4..5ce7437 100644 --- a/profiles/default.nix +++ b/profiles/default.nix @@ -3,6 +3,7 @@ { imports = [ ./android + ./latex ./printing ]; } diff --git a/profiles/latex/default.nix b/profiles/latex/default.nix new file mode 100644 index 0000000..221f377 --- /dev/null +++ b/profiles/latex/default.nix @@ -0,0 +1,19 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.my.profiles.latex; +in +{ + options.my.profiles.latex = with lib; { + enable = mkEnableOption "latex profile"; + }; + + config = lib.mkIf cfg.enable { + environment.systemPackages = with pkgs; [ + biber + pdfpc + qtikz + texlive.combined.scheme-full + texstudio + ]; + }; +}