summaryrefslogtreecommitdiff
path: root/home/typst.nix
blob: 761bdf9ad87a03f4a09b708e077924fd22853ea8 (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
  ];

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