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:
parent
9083ff41ab
commit
1e373bd299
15 changed files with 2117 additions and 3 deletions
39
templates/docs/flake.nix
Normal file
39
templates/docs/flake.nix
Normal 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);
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue