This repository contains a Nix flake for packaging custom fonts, (IBMPlexMono
and CascadiaCode
were provided as examples) making it easy to include them in your NixOS or Home Manager setup.
- Font Packaging: The flake provides derivations for the fonts, allowing you to easily include them in your NixOS or Home Manager configuration.
- Default Package: The
IBMPlexMono
font is set as the default package, which will be built or installed when you runnix build
without specifying a package name.
-
Add the Flake Input: Include this repository as a flake input in your main NixOS configuration or Home Manager configuration.
{ inputs = { nixpkgs.url = "github:NixOS/nixpkgs"; font-flake.url = "github:redyf/font-flake"; }; }
-
Install Fonts: Reference the font packages by name in your Home Manager configuration.
{ home.packages = with pkgs; [ inputs.font-flake.packages.${system}.my-font1 inputs.font-flake.packages.${system}.my-font2 ]; }
-
Default Package: To build or install the default package (
IBMPlexMono
), you can run:nix build "github:redyf/font-flake"
If you wish to change the fonts packaged in this flake, consider forking this repository and modifying the flake accordingly. The steps for adding the flake input and installing the fonts will remain the same.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or additional features.
This project is licensed under the MIT License.