dotfiles/modules/fonts.nix
Lucy von Overheidt 7dd32c7a17 meow
2025-09-09 23:43:59 +02:00

18 lines
521 B
Nix

{ pkgs, ... }:
let
# Fetch the JSON file and read its content
fontsJson = builtins.fetchurl {
url = "https://raw.githubusercontent.com/NixOS/nixpkgs/nixos-unstable/pkgs/data/fonts/nerd-fonts/manifests/fonts.json";
sha256 = "1kdmk4ayckixxckxbik9jg4fdqqgm7s5x1lvzd95v1g09bhn33wg";
};
# Parse the JSON and extract package names
fonts = builtins.fromJSON (builtins.readFile fontsJson);
packageNames = map (font: font.package) fonts;
in
{
fonts.packages = with pkgs; [
iosevka
comic-mono
];
}