font
This commit is contained in:
parent
e75aff55ba
commit
414d3b190e
2 changed files with 37 additions and 1 deletions
|
|
@ -1,4 +1,15 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
# Fetch the JSON file
|
||||
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 fontsJson;
|
||||
packageNames = map (font: font.package) fonts;
|
||||
in
|
||||
{
|
||||
fonts.packages =
|
||||
with pkgs;
|
||||
|
|
@ -7,5 +18,5 @@
|
|||
comic-mono
|
||||
nerdfonts
|
||||
]
|
||||
++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerdfonts);
|
||||
++ packageNames;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue