added direnv to automatically pull relevant packages

This commit is contained in:
Erik Grobecker 2024-10-15 13:04:51 +02:00
parent 2af00b311d
commit 680dacf4a2
Signed by: Erik
GPG key ID: 80D020D0ABBD3FB2
5 changed files with 64 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
*.pdf *.pdf
sozialwissenschaften/assets/pdfs/Probeklausur_SU_Q2-OCR.pdf.txt sozialwissenschaften/assets/pdfs/Probeklausur_SU_Q2-OCR.pdf.txt
.direnv

27
flake.lock Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1728538411,
"narHash": "sha256-f0SBJz1eZ2yOuKUr5CA9BHULGXVSn6miBuUWdTyhUhU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b69de56fac8c2b6f8fd27f2eca01dcda8e0a4221",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

26
flake.nix Normal file
View file

@ -0,0 +1,26 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs =
{ nixpkgs, ... }:
{
/*
This example assumes your system is x86_64-linux
change as neccesary
*/
devShells.x86_64-linux =
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in
{
default = pkgs.mkShell {
packages = [
pkgs.typst
pkgs.typstyle
pkgs.tinymist
];
};
};
};
}

9
shell.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
packages = [
pkgs.typst
pkgs.typstyle
pkgs.tinymist
];
}