diff options
Diffstat (limited to 'modules/home/fonts.nix')
| -rw-r--r-- | modules/home/fonts.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/home/fonts.nix b/modules/home/fonts.nix new file mode 100644 index 0000000..26dc924 --- /dev/null +++ b/modules/home/fonts.nix | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | { pkgs, lib, ... }: | ||
| 2 | let | ||
| 3 | candidateFonts = [ pkgs.nerd-fonts.jetbrains-mono ]; | ||
| 4 | in | ||
| 5 | { | ||
| 6 | home.packages = builtins.filter (lib.meta.availableOn pkgs.stdenv.hostPlatform) candidateFonts; | ||
| 7 | |||
| 8 | # Standalone (non-NixOS) Linux activations don't otherwise get fontconfig | ||
| 9 | # pointed at fonts installed via home.packages - see design.md. Harmless | ||
| 10 | # no-op on Darwin (font discovery there goes through | ||
| 11 | # targets.darwin.fonts, unconditional on this option) and idempotent on | ||
| 12 | # NixOS (already defaults to true via useUserPackages). | ||
| 13 | fonts.fontconfig.enable = true; | ||
| 14 | } | ||
