diff --git a/flake.nix b/flake.nix index 1b86dbf..c7e1b73 100644 --- a/flake.nix +++ b/flake.nix @@ -12,12 +12,27 @@ { system, ... }: let pkgs = import nixpkgs { inherit system; }; + fontsConf = + with pkgs; + makeFontsConf { + fontDirectories = [ + font-awesome + roboto + source-sans + ]; + }; in { devShells.default = with pkgs; mkShell { - buildInputs = [ typst typstPackages.fontawesome jujutsu ]; + buildInputs = [ + typst + jujutsu + ]; + shellHook = '' + export FONTCONFIG_FILE="${fontsConf}" + ''; }; }; };