untitleable commit: read description

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.
This commit is contained in:
Artur Manuel 2024-08-27 00:38:16 +01:00
commit 1e373bd299
Failed to generate hash of commit
15 changed files with 2117 additions and 3 deletions

39
templates/docs/flake.nix Normal file
View file

@ -0,0 +1,39 @@
{
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);
};
}