summaryrefslogtreecommitdiff
path: root/home/typst.nix
blob: a5b11476c1e18f7f512c4533d78d2e1830d12e06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, pkgs, ... }:

let
  dots = toString ./..;
in
{
  fonts.fontconfig.enable = true;

  home.packages = with pkgs; [
    montserrat
    fira-math
    corefonts
    source-code-pro
  ];

  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";
}