install my own fonts to the nix store
This commit is contained in:
parent
976017ac80
commit
f640e44fd5
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
*.secret
|
||||
/secret/
|
||||
*.secret
|
||||
|
|
20
packages/cullmann-fonts.nix
Normal file
20
packages/cullmann-fonts.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
stdenvNoCC,
|
||||
lib,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "cullmann-fonts";
|
||||
version = "1.0";
|
||||
src = /nix/data/nixos/secret/fonts;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/truetype/
|
||||
cp -r $src/*.{ttf,otf} $out/share/fonts/truetype/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cullmann's Fonts";
|
||||
homepage = "https://cullmann.io/";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
impermanence = builtins.fetchTarball "https://github.com/nix-community/impermanence/archive/master.tar.gz";
|
||||
cullmann-fonts = pkgs.callPackage "/nix/data/nixos/packages/cullmann-fonts.nix" {};
|
||||
in
|
||||
{
|
||||
#
|
||||
|
@ -411,9 +412,8 @@ in
|
|||
|
||||
# system fonts
|
||||
packages = with pkgs; [
|
||||
# Inter & Merriweather as main fonts
|
||||
inter
|
||||
merriweather
|
||||
# personal paid fonts
|
||||
cullmann-fonts
|
||||
|
||||
# font families with good unicode coverage as fallback
|
||||
noto-fonts
|
||||
|
|
Loading…
Reference in a new issue