From 4ca8b75fa4d08ed6a046ccc887ce54d7a779a35b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Sun, 29 Dec 2024 14:54:41 +0100 Subject: [PATCH] move font config --- hosts/MaxNixosLaptop/configuration.nix | 7 ------- modules/home/sway/default.nix | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/hosts/MaxNixosLaptop/configuration.nix b/hosts/MaxNixosLaptop/configuration.nix index ab900ae..f2c76ca 100644 --- a/hosts/MaxNixosLaptop/configuration.nix +++ b/hosts/MaxNixosLaptop/configuration.nix @@ -57,13 +57,6 @@ })) ]; - fonts.packages = with pkgs; [ - nerdfonts - montserrat - ]; - - # List services that you want to enable: - # fingerprint unlock services.fprintd.enable = true; diff --git a/modules/home/sway/default.nix b/modules/home/sway/default.nix index ee8bad6..4487de4 100644 --- a/modules/home/sway/default.nix +++ b/modules/home/sway/default.nix @@ -66,6 +66,11 @@ in { swayidle # automatic screen locking after system idle time foot # terminal keepassxc # used for secrets instead of gnome-keyring + + # fonts + noto-fonts + nerd-fonts + fira ]; home.sessionVariables = { @@ -265,5 +270,16 @@ in { show-fai8led-attempts = true; }; }; + + # install fonts + fonts.fontconfig = { + enable = true; + defaultFonts = { + emoji = ["Noto Color Emoji"]; + monospace = ["FiraCode Nerd Fonts" "FiraMono Nerd Font" "FiraMono" "NotoMono Nerd Font"]; + sansSerif = ["Fira Sans" "NotoSans Nerd Font"]; + serif = ["NotoSerif Nerd Font"]; + }; + }; }; }