Nix flake for Apple Color Emoji font.
Add the flake as an input in your flake.nix:
{
inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
inputs.apple-emoji-nix.url = "https://github.com/oxcl/nix-flake-apple-emoji";
inputs.apple-emoji-nix.inputs.nixpkgs.follows = "nixpkgs";
}Add the overlay and configure fonts:
let
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [ inputs.apple-emoji-nix.overlays.default ];
};
in {
fonts.packages = [ pkgs.apple-emoji-nix ];
}Rebuild your NixOS system:
sudo nixos-rebuild switchUse the overlay in your home-manager configuration:
{
programs.home-manager.enable = true;
nixpkgs.overlays = [ inputs.apple-emoji-nix.overlays.default ];
home.packages = [ pkgs.apple-emoji-nix ];
}After applying, refresh the font cache:
fc-cache -fvThe Apple Color Emoji font is copyright Apple Inc. This Nix wrapper is provided under the Apache License 2.0.