grace/dots

dotfiles/nix configs

git clone https://git.gae.moe/grace/dots

Grace Yoderpurdue cs fixb4edc3d

vulcan
663 B29 linesraw
1{ config, lib, pkgs, ... }:
2
3let
4  dots = toString ./..;
5  packagePath = "typst/packages/local/grace-personal-template/0.1.0";
6  template = {
7    source = config.lib.file.mkOutOfStoreSymlink "${dots}/typst";
8  };
9in
10{
11  fonts.fontconfig.enable = true;
12
13  home.packages = with pkgs; [
14    montserrat
15    fira-math
16    corefonts
17    source-code-pro
18  ];
19
20  home.sessionVariables.TYPST_FONT_PATHS = "${config.home.profileDirectory}/share/fonts";
21
22  home.file = lib.optionalAttrs pkgs.stdenv.isDarwin {
23    "Library/Application Support/${packagePath}" = template;
24  };
25
26  xdg.dataFile = lib.optionalAttrs pkgs.stdenv.isLinux {
27    "${packagePath}" = template;
28  };
29}