Skip to content

redyf/font-flake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Font Flake for NixOS


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.

Features

  • 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 run nix build without specifying a package name.

Usage

  1. 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";
      };
    }
  2. 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
      ];
    }
  3. Default Package: To build or install the default package (IBMPlexMono), you can run:

    nix build "github:redyf/font-flake"

Customization

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.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or additional features.

License

This project is licensed under the MIT License.

Releases

No releases published

Packages

No packages published

Languages