diff --git a/README.md b/README.md index e39debe..f0bfe87 100644 --- a/README.md +++ b/README.md @@ -1 +1,22 @@ -# Report Template +# Report Template + Custom Vim Nix Flake + +This templates are designed to be able to summon with single Nix command. + +This flake includes three templates, two devShells, and two packages. + +## Templates + +* `latex` - "Generic" LaTeX report, customized for my Kosen +* `pandoc` - Single file markdown report, pandoc for LaTeX/PDF output +* `pandoc-multi` - Same as `pandoc`, but configured for multi file + +## DevShells + +* `latex` - The default devShell, includes custom TeX environment and pre-configured vim +* `pandoc` - pandoc with custom TeX environment + +## Packages + +* `texEnv` - Custom TeX environment with packages, fonts, and tools all in one +* `vimWithTeX` - Pre-configured vim with `vim-eskk` as in-place Japanese input method and `vim-tex` for TeX support + diff --git a/flake.lock b/flake.lock index ee2fcd5..3787bf1 100644 --- a/flake.lock +++ b/flake.lock @@ -36,11 +36,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1784497964, - "narHash": "sha256-vlHUuqAcbcH2RKmHbPiuQzbv1pnzzavXnI62RD0bqCU=", + "lastModified": 1788614874, + "narHash": "sha256-7QYjT2vHLuX9Z1pdxHXDKCbh1CR3D/2rywB9Tx0MPRg=", "owner": "nixos", "repo": "nixpkgs", - "rev": "241313f4e8e508cb9b13278c2b0fa25b9ca27163", + "rev": "c043004d1c6985732bcc1cbc5a9c9aecbbb4e0f0", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index d97ba5d..4cee10f 100644 --- a/flake.nix +++ b/flake.nix @@ -20,7 +20,7 @@ overlays = import ./nix/overlay.nix { inherit pkgs; eskk-vim-src = eskk-vim; }; }; - vimWithTex = import ./nix/vim.nix { inherit pkgs; lib = pkgs.lib; }; + vimWithTeX = import ./nix/vim.nix { inherit pkgs; lib = pkgs.lib; }; texEnv = import ./nix/latex.nix { inherit pkgs; }; basePackages = [ @@ -33,7 +33,7 @@ in { packages = { - inherit texEnv vimWithTex; + inherit texEnv vimWithTeX; }; devShells.default = self.devShells.${system}.latex; devShells.latex = pkgs.stdenv.mkDerivation { @@ -43,7 +43,7 @@ export FONTCONFIG_FILE="${pkgs.fontconfig.out}/etc/fonts/fonts.conf" ''; buildInputs = basePackages ++ [ - vimWithTex + vimWithTeX ]; }; devShells.pandoc = pkgs.stdenv.mkDerivation {