diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 25 |
1 files changed, 11 insertions, 14 deletions
@@ -10,7 +10,6 @@ systems.follows = "systems"; }; }; - files.url = "github:mightyiam/files"; flake-parts.url = "github:hercules-ci/flake-parts"; systems.url = "github:nix-systems/default"; }; @@ -20,7 +19,6 @@ imports = [ latex-utils.modules.flake.latex-utils - inputs.files.flakeModules.default ]; latex-utils = { @@ -39,21 +37,20 @@ inputsFrom = [ config.devShells.latex-utils ]; - nativeBuildInputs = [ - config.files.writer.drv - ]; + # nativeBuildInputs = [ + # config.packages.latexmk + # ]; }; - files.files = [ - { - path_ = ".latexmkrc"; - drv = pkgs.writeText ".latexmkrc" /* perl */ '' - $out_dir = './build'; - $pdf_mode = 1; - $pdflatex = 'pdflatex -shell-escape -interaction=nonstopmode %O %S'; + packages = { + deploy = pkgs.writeShellApplication { + name = "deploy"; + runtimeInputs = [ pkgs.rsync ]; + text = '' + rsync --chown=nginx:nginx ${config.packages.cv} root@mathematicaster.org:/var/www/doc/cv.pdf ''; - } - ]; + }; + }; }; }; } |
