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