
new template dropped, especially useful for me since now I can just load up a TeX environment whenever I need to. also added some names to my devShells.
39 lines
967 B
Nix
39 lines
967 B
Nix
{
|
|
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);
|
|
};
|
|
}
|