2025-08-12 08:16:06 -05:00
2025-02-06 13:46:51 +09:00
2024-03-03 04:16:20 +09:00
2024-07-08 12:26:05 +09:00
2025-08-12 08:10:33 -05:00
2025-02-06 13:46:51 +09:00
2025-08-12 08:13:19 -05:00
2024-07-08 13:44:15 +09:00
2024-07-08 13:43:36 +09:00
2025-08-12 08:16:06 -05:00
2025-08-11 21:01:10 -05:00
2025-08-11 20:15:12 -05:00
2025-08-12 08:13:19 -05:00
2024-07-08 14:55:04 +09:00
2024-07-08 14:55:21 +09:00
2025-08-12 08:16:06 -05:00

NixOS Font Registry


This repository serves as a Nix registry for a small collection of open source fonts, primarily focused on Japanese fonts with a few English fonts included. It demonstrates how to create a custom flake registry and can be used to install custom fonts on NixOS.

Usage

To use this repository as a Nix registry and install the fonts, follow the steps below.

Step 1: Add the Registry

First, add this repository as as flake registry in your NixOS configuration (flake.nix).

{
  inputs = {
    nixos-fonts.url = "github:Takamatsu-Naoki/nixos-fonts";
  };
}

Step 2: Import Fonts

Then, you can import the fonts into your NixOS configuration (configuration.nix). For example:

{ inputs, pkgs, ... }:

{
  fonts = {
    packages = with pkgs; [
      noto-fonts
      noto-fonts-cjk-serif
      noto-fonts-cjk-sans
    ] ++ (with inputs.nixos-fonts.packages.x86_64-linux; [
      anzu-moji
      azukifont
      rii-tegaki-fude
    ]);
  };

Step 3: Rebuild NixOS

Finally, apply the changes by rebuilding your NixOS system:

sudo nixos-rebuild switch --flake .

Example Usage

To demonstrate how to make a custom flake registry, this repository is structured in a way that allows you to easily add more fonts and extend the registry.

License

This project is licensed under the MIT License. See the LICENSE file for details.

S
Description
Nix Registry for Open Source Fonts
Readme MIT 45 KiB
Languages
Nix 100%