Skip to content

Commit

Permalink
droid: fix font path
Browse files Browse the repository at this point in the history
  • Loading branch information
brckd committed Jan 15, 2025
1 parent d7b9669 commit b3f58fa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion configs/droid/phone/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
color14 = base0C;
color15 = base07;
};
font = with config.home-manager.config.stylix.fonts.monospace; "${package}/share/fonts/truetype/NerdFonts/${builtins.replaceStrings [" "] [""] name}-Regular.ttf";
font = let
font = config.home-manager.config.stylix.fonts.monospace;
inherit (font) package;
identifiers = lib.splitString " " font.name;
name = builtins.head identifiers;
variant = lib.last identifiers;
in "${package}/share/fonts/truetype/NerdFonts/${name}/${name}NerdFont-${variant}.ttf";
};
}

0 comments on commit b3f58fa

Please sign in to comment.