{ description = "My CV"; inputs = { nixpkgs.url = "github:nixos/nixpkgs"; nix-filter.url = "github:numtide/nix-filter"; latex-utils = { url = "github:jmmaloney4/latex-utils"; inputs = { flake-parts.follows = "flake-parts"; systems.follows = "systems"; }; }; flake-parts.url = "github:hercules-ci/flake-parts"; systems.url = "github:nix-systems/default"; }; outputs = inputs@{ self, flake-parts, latex-utils, ... }: flake-parts.lib.mkFlake { inherit self inputs; } { systems = import inputs.systems; imports = [ latex-utils.modules.flake.latex-utils ]; latex-utils = { documents = [ { name = "cv.pdf"; src = ./.; inputFile = "cv.tex"; } ]; }; perSystem = { config, pkgs, ... }: { devShells.default = pkgs.mkShellNoCC { inputsFrom = [ config.devShells.latex-utils ]; # nativeBuildInputs = [ # config.packages.latexmk # ]; }; 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 ''; }; }; }; }; }