diff options
Diffstat (limited to 'modules/home')
| -rw-r--r-- | modules/home/default.nix | 1 | ||||
| -rw-r--r-- | modules/home/fonts.nix | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/modules/home/default.nix b/modules/home/default.nix index 7a093bf..15f70bd 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix | |||
| @@ -7,5 +7,6 @@ | |||
| 7 | ./dotfiles.nix | 7 | ./dotfiles.nix |
| 8 | ./dev-tools.nix | 8 | ./dev-tools.nix |
| 9 | ./desktop-apps.nix | 9 | ./desktop-apps.nix |
| 10 | ./fonts.nix | ||
| 10 | ]; | 11 | ]; |
| 11 | } | 12 | } |
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 | } | ||
