diff --git a/dm-mono.nix b/dm-mono.nix new file mode 100644 index 0000000..b44efab --- /dev/null +++ b/dm-mono.nix @@ -0,0 +1,25 @@ +{ lib, fetchzip }: + +let + pname = "dm-mono"; + version = "1.0.0"; +in fetchzip { + name = "${pname}-${version}"; + extension = "zip"; + stripRoot = false; + + url = "https://fonts.google.com/download?family=DM%20Mono"; + hash = "sha256-HAStsW+SAAkOjywPBSzhmib+fEylWZo6PtNtfDVNYZ0="; + + postFetch = '' + mkdir -p $out/share/fonts/truetype + mv $out/*.ttf $out/share/fonts/truetype + ''; + + meta = with lib; { + description = "DM Mono"; + homepage = "https://github.com/googlefonts/dm-mono"; + license = licenses.ofl; + platforms = platforms.all; + }; +} diff --git a/home.nix b/home.nix index 8991a1d..bafcef4 100644 --- a/home.nix +++ b/home.nix @@ -172,6 +172,15 @@ nixfmt statix tree + + # fonts + fira-mono + inconsolata + jetbrains-mono + nanum-gothic-coding + roboto-mono + source-code-pro + (import ./dm-mono.nix { inherit lib fetchzip; }) ]; }