From a0963d09f0576f8dc9009d454cc8cb2902c1f114 Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Sun, 15 Feb 2026 12:13:34 +0000 Subject: [PATCH] fonts --- config/hosts/aspects/doloro-laptop/host.nix | 1 + config/modules/fonts.nix | 34 +++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 config/modules/fonts.nix diff --git a/config/hosts/aspects/doloro-laptop/host.nix b/config/hosts/aspects/doloro-laptop/host.nix index af7e168..8eb8d06 100644 --- a/config/hosts/aspects/doloro-laptop/host.nix +++ b/config/hosts/aspects/doloro-laptop/host.nix @@ -9,6 +9,7 @@ includes = [ modules.nix modules.tuigreet + modules.fonts # ]; nixos = diff --git a/config/modules/fonts.nix b/config/modules/fonts.nix new file mode 100644 index 0000000..f9a39e1 --- /dev/null +++ b/config/modules/fonts.nix @@ -0,0 +1,34 @@ +{ + den, + modules, + ... +}: +{ + modules.fonts = { + nixos = + { pkgs, ... }: + { + config.fonts = { + enableDefaultPackages = true; + packages = + with pkgs; + [ + material-design-icons + material-symbols + nerd-fonts.caskaydia-cove + nerd-fonts.noto + noto-fonts-cjk-sans + noto-fonts-cjk-serif + ] + ++ [ + (inputs.font-patcher.lib.patchFont { + font = "${pkgs.googlesans-code}/share/fonts/googlesans-code/GoogleSansCode[wght].ttf"; + name = "Google Sans Code Nerd Font"; + inherit system; + }) + ]; + fontDir.enable = true; + }; + }; + }; +}