summaryrefslogtreecommitdiff
path: root/home/typst.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/typst.nix')
-rw-r--r--home/typst.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/home/typst.nix b/home/typst.nix
new file mode 100644
index 0000000..761bdf9
--- /dev/null
+++ b/home/typst.nix
@@ -0,0 +1,20 @@
+{ config, pkgs, ... }:
+
+let
+ dots = toString ./..;
+in
+{
+ fonts.fontconfig.enable = true;
+
+ home.packages = with pkgs; [
+ montserrat
+ fira-math
+ corefonts
+ ];
+
+ home.sessionVariables.TYPST_FONT_PATHS =
+ "${config.home.profileDirectory}/share/fonts";
+
+ home.file."Library/Application Support/typst/packages/local/grace-personal-template/0.1.0".source =
+ config.lib.file.mkOutOfStoreSymlink "${dots}/typst";
+}