From 1363e204b50d7901ba23b35f87aaae63c8c4deec Mon Sep 17 00:00:00 2001 From: Maxwell Beck Date: Mon, 13 Jul 2026 08:22:05 -0500 Subject: init --- flake.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b4c5334 --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + inputs = { + nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"; + }; + + outputs = { self, nixpkgs }: let + system = "aarch64-darwin"; + pkgs = nixpkgs.legacyPackages.${system}; + + fonts = with pkgs; [ gyre-fonts ]; + in { + devShells.${system} = rec { + rastertype = pkgs.mkShell { + packages = [ pkgs.typst ]; + shellHook = '' + export TYPST_FONT_PATHS="${pkgs.symlinkJoin { name = "rastertype-fonts"; paths = fonts; }}/share/fonts" + export TYPST_IGNORE_SYSTEM_FONTS=true + export TYPST_IGNORE_EMBEDDED_FONTS=true + export TYPST_FEATURES=html + ''; + }; + default = rastertype; + }; + }; +} -- cgit v1.3.1