This commit is contained in:
biscuit
2025-05-20 22:33:12 -05:00
parent 58d575ebeb
commit a9aef32984
2 changed files with 40 additions and 1 deletions
+33
View File
@@ -0,0 +1,33 @@
{
description = "A flake that gives access to custom fonts.";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
defaultPackage = pkgs.symlinkJoin {
name = "myfonts-0.1";
paths = builtins.attrValues self.packages.${system};
};
packages.monolisa = pkgs.stdenvNoCC.mkDerivation {
name = "monolisa-font";
dontConfigure = true;
src = builtins.toPath ./fonts;
};
installPhase = ''
mkdir -p $out/share/fonts/truetype
cp -R $src/moonolisa/*.ttf $out/share/fonts/truetype
'';
meta = {description = "Monolisa font.";};
}
);
}
+7 -1
View File
@@ -1,4 +1,10 @@
{pkgs, ...}: {
{
pkgs,
inputs,
system,
...
}: {
fonts.packages = with pkgs; [
nerd-fonts.fira-code
nerd-fonts.jetbrains-mono