From 3abdf2422fc19c19965eedc62d3f224064251398 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Fri, 22 Mar 2024 22:29:45 +0000 Subject: [PATCH] add label --- flake.lock | 20 ++++++++++---------- flake.nix | 1 + typst/.envrc | 1 + typst/.gitignore | 1 + typst/label.typ | 15 +++++++++++++++ 5 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 typst/.envrc create mode 100644 typst/.gitignore create mode 100644 typst/label.typ diff --git a/flake.lock b/flake.lock index 8439a2a..8d456b0 100644 --- a/flake.lock +++ b/flake.lock @@ -10,11 +10,11 @@ ] }, "locked": { - "lastModified": 1708666625, - "narHash": "sha256-m/hGwXHPhUo7s/uUigA7skxg5B33X8LAOrMznE88zXY=", + "lastModified": 1710553836, + "narHash": "sha256-iUQ4M7Gy+/By6Z4UAqKY1GFTU4qZLEvOxiJf0IseX00=", "ref": "refs/heads/canon", - "rev": "6c29e57677352cb3bd34ef4ef7665f05760bf057", - "revCount": 39, + "rev": "3d6e66d3b921ea19323517e782efd7ed8074a365", + "revCount": 42, "type": "git", "url": "https://git.mildlyfunctional.gay/artemist/packages.git" }, @@ -25,11 +25,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1708564076, - "narHash": "sha256-KKkqoxlgx9n3nwST7O2kM8tliDOijiSSNaWuSkiozdQ=", + "lastModified": 1711106783, + "narHash": "sha256-PDwAcHahc6hEimyrgGmFdft75gmLrJOZ0txX7lFqq+I=", "owner": "nixos", "repo": "nixpkgs", - "rev": "98b00b6947a9214381112bdb6f89c25498db4959", + "rev": "a3ed7406349a9335cb4c2a71369b697cecd9d351", "type": "github" }, "original": { @@ -66,11 +66,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1705309234, - "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", "owner": "numtide", "repo": "flake-utils", - "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index ab73fbb..0e5f570 100644 --- a/flake.nix +++ b/flake.nix @@ -33,6 +33,7 @@ zephyrSrc = null; modules = [ ]; }; + devShells.typst = with pkgs; mkShell { packages = [ typst ]; }; formatter = pkgs.nixfmt; }); diff --git a/typst/.envrc b/typst/.envrc new file mode 100644 index 0000000..65706ce --- /dev/null +++ b/typst/.envrc @@ -0,0 +1 @@ +use flake ..#typst diff --git a/typst/.gitignore b/typst/.gitignore new file mode 100644 index 0000000..a136337 --- /dev/null +++ b/typst/.gitignore @@ -0,0 +1 @@ +*.pdf diff --git a/typst/label.typ b/typst/label.typ new file mode 100644 index 0000000..adbb9ae --- /dev/null +++ b/typst/label.typ @@ -0,0 +1,15 @@ +#{ + set page(width: 3.5in, height: 1.125in, margin: 0em) + set par(leading: 0.2em) + + place( + top + left, + dx: 12mm, + dy: 0in, + block(width: 3.5in - 12mm, height: 1in, align(center + horizon, text(font: "P22UndergroundCYBook", size: 20pt)[ + Artemis Tosini \ + me\@artem.ist \ + hostname + ])) + ) +}