Flake for my NixOS devices
1{...}: {
2 pkgs,
3 config,
4 lib,
5 ...
6}: {
7 options.cow.fonts.enable =
8 (lib.mkEnableOption "font management")
9 // {
10 default = config.cow.gdi.enable;
11 };
12
13 config = lib.mkIf config.cow.fonts.enable {
14 fonts = {
15 enableDefaultPackages = true;
16 packages = with pkgs; [
17 fira-code
18 fira-go
19 noto-fonts
20 noto-fonts-lgc-plus
21 noto-fonts-cjk-sans
22 noto-fonts-cjk-serif
23 nerd-fonts.symbols-only
24 noto-fonts-color-emoji
25 corefonts
26 unifont
27 liberation_ttf
28 ];
29 fontconfig = {
30 enable = true;
31 defaultFonts = {
32 serif = [
33 "Noto Serif"
34 "Symbols Nerd Font"
35 ];
36 sansSerif = [
37 "FiraGO"
38 "Symbols Nerd Font"
39 ];
40 monospace = [
41 "Fira Code"
42 "Symbols Nerd Font"
43 ];
44 emoji = [
45 "Noto Color Emoji"
46 "Symbols Nerd Font"
47 ];
48 };
49 };
50 };
51 };
52}