{ description = "Flake for creating documents, such as Math papers, just any old document, etc."; inputs = { nixpkgs = { type = "github"; owner = "NixOS"; repo = "nixpkgs"; ref = "nixos-unstable"; }; treefmt = { type = "github"; owner = "numtide"; repo = "treefmt-nix"; }; }; outputs = inputs@{ self, nixpkgs, ... }: let systems = [ "x86_64-linux" "aarch64-linux" ]; forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f { pkgs = import nixpkgs { inherit system; }; }); treefmtEval = forAllSystems ({pkgs}: inputs.treefmt.lib.evalModule pkgs ({ programs.nixfmt.enable = true; })); in { devShells = forAllSystems ({pkgs}: { default = (pkgs.mkShell { name = "work-world"; packages = [ pkgs.texliveFull ]; }); }); formatter = forAllSystems ({pkgs}: treefmtEval.config.build.wrapper); }; }