Setup main document

This commit is contained in:
Charlotte Van Petegem 2023-10-23 14:59:00 +02:00
parent ef0dfddd3c
commit a04ae3801b
No known key found for this signature in database
GPG key ID: 019E764B7184435A
8 changed files with 4406 additions and 41 deletions

37
flake.nix Normal file
View file

@ -0,0 +1,37 @@
{
description = "My PhD thesis";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
devshell = {
url = "github:numtide/devshell";
inputs = {
flake-utils.follows = "flake-utils";
nixpkgs.follows = "nixpkgs";
};
};
};
outputs = { self, nixpkgs, devshell, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; overlays = [ devshell.overlays.default ]; };
in {
devShells.default = pkgs.devshell.mkShell {
name = "PhD thesis";
packages = [
pkgs.texlive.combined.scheme-full
pkgs.nixpkgs-fmt
];
commands = [
{
name = "clean";
category = "general commands";
help = "clean directory";
command = "cat .gitignore | xargs rm";
}
];
};
}
);
}