From 53e4e8ba94a43b7d64b16e9e0757c07d4cfd1b0e Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Tue, 27 Jan 2026 15:17:15 +0100 Subject: [PATCH] init --- base.typ | 0 flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 28 ++++++++++++++++++++++++++++ justfile | 9 +++++++++ 4 files changed, 64 insertions(+) create mode 100644 base.typ create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 justfile diff --git a/base.typ b/base.typ new file mode 100644 index 0000000..e69de29 diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..0c6ae98 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1769170682, + "narHash": "sha256-oMmN1lVQU0F0W2k6OI3bgdzp2YOHWYUAw79qzDSjenU=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "c5296fdd05cfa2c187990dd909864da9658df755", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..819ab90 --- /dev/null +++ b/flake.nix @@ -0,0 +1,28 @@ +{ + description = "A very basic typst flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + }; + + outputs = { + self, + nixpkgs, + }: let + systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"]; + eachSystem = f: + nixpkgs.lib.genAttrs systems (system: + f nixpkgs.legacyPackages.${system}); + in { + devShells = eachSystem (pkgs: { + default = pkgs.mkShell { + packages = with pkgs; [ + typst + tinymist + typstPackages.fontawesome + font-awesome + ]; + }; + }); + }; +} diff --git a/justfile b/justfile new file mode 100644 index 0000000..1daa3f4 --- /dev/null +++ b/justfile @@ -0,0 +1,9 @@ +build: + typst compile base.typ engels.pdf --font-path ./fonts + +# Make sure all the git actions of pulling, adding all files, committing, and pushing are done in one command +push: + git pull + git add * + read -p "Commit message: " -r message && git commit -m "$message" + git push