Commit 640ec997 authored by Christopher League's avatar Christopher League
Browse files

include certain fonts from google

parent 32ff8464
......@@ -15,6 +15,7 @@ in
"${home-manager}/nixos"
./backgrounds.nix
./skel.nix
./fonts.nix
];
config = {
......
{pkgs, ...}:
{
fonts = {
enableFontDir = true;
enableCoreFonts = true;
enableDefaultFonts = true;
enableGhostscriptFonts = true;
fonts = [(pkgs.callPackage ./fonts {})];
};
}
{ pkgs ? (import <nixpkgs> {}).pkgs
, lib ? pkgs.lib
}:
let
subdir = "share/fonts/truetype";
families = ["Alegreya" "AlegreyaSans"];
in
pkgs.stdenv.mkDerivation {
name = "selected-google-fonts";
src = ./.;
buildInputs = [pkgs.google-fonts];
phases = ["installPhase"];
installPhase = ''
mkdir -p $out/${subdir}
${lib.concatMapStringsSep "\n"
(f: "cp $buildInputs/${subdir}/${f}-*.ttf $out/${subdir}")
families}
'';
}
body { font-family: "Liberation Serif", serif; width: 56em; margin: auto; }
body { font-family: "Alegreya", serif; width: 56em; margin: auto; }
code {white-space: pre-wrap; font-family: "Liberation Mono", monospace; }
pre {border: 1px solid #ddd; background: #f7f7f7; padding: 5px; }
a:link {text-decoration: none;}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment