diff options
Diffstat (limited to 'modules/home/productivity')
| -rw-r--r-- | modules/home/productivity/anki/default.nix | 24 | ||||
| -rw-r--r-- | modules/home/productivity/latex/default.nix | 43 |
2 files changed, 67 insertions, 0 deletions
diff --git a/modules/home/productivity/anki/default.nix b/modules/home/productivity/anki/default.nix new file mode 100644 index 0000000..84b1655 --- /dev/null +++ b/modules/home/productivity/anki/default.nix @@ -0,0 +1,24 @@ +{ + config, + lib, + ... +}: +let + cfg = config.nx.productivity.anki; + inherit (lib) mkEnableOption mkIf; +in +{ + options.nx.productivity.anki = { + enable = mkEnableOption "Anki free and open-source flashcard program"; + }; + config = mkIf cfg.enable { + programs.anki = { + enable = true; + #style = "native"; + #addons = with pkgs.ankiAddons; [ + # anki-connect + # review-heatmap + #]; + }; + }; +} diff --git a/modules/home/productivity/latex/default.nix b/modules/home/productivity/latex/default.nix new file mode 100644 index 0000000..6f37138 --- /dev/null +++ b/modules/home/productivity/latex/default.nix @@ -0,0 +1,43 @@ +{ + config, + options, + pkgs, + lib, + ... +}: +let + cfg = config.nx.productivity.latex; + inherit (lib) mkEnableOption mkIf; +in +{ + options.nx.productivity.latex = { + enable = mkEnableOption "LaTeX typesetting system"; + }; + + config = mkIf cfg.enable { + programs.texlive = { + enable = true; + # See https://mynixos.com/search?q=texlivepackages.collection for more collections + # and https://mynixos.com/search?q=texlivepackages for more individual packages. + extraPackages = tpkgs: { + inherit (tpkgs) + collection-basic + collection-latex + collection-latexrecommended + biblatex + ; + }; + }; + + home.packages = with pkgs; [ + biber + ]; + + programs.pandoc = { + enable = true; + defaults = { + pdf-engine = "pdfetex"; + }; + }; + }; +} |
