From d4f7650cd0735d1fe9173530cc31c24b65ed44ff Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 3 Jun 2024 20:50:58 +0530 Subject: global/font: init --- os/cez/modules/wayland.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'os/cez/modules/wayland.nix') diff --git a/os/cez/modules/wayland.nix b/os/cez/modules/wayland.nix index b6499b7..338c585 100644 --- a/os/cez/modules/wayland.nix +++ b/os/cez/modules/wayland.nix @@ -1,5 +1,10 @@ { config, pkgs, ... }: let user = config.global.userdata.name; + + fontSans = config.global.font.sans.name; + fontMonospace = config.global.font.monospace.name; + fontPackages = config.global.font.monospace.packages + ++ config.global.font.sans.packages; in { # pkgs environment.systemPackages = with pkgs; [ @@ -35,18 +40,15 @@ in { # font fonts = { - packages = with pkgs; [ - terminus-nerdfont - dm-sans - ]; + packages = fontPackages; enableDefaultPackages = true; fontconfig = { hinting.style = "full"; subpixel.rgba = "rgb"; defaultFonts = { - monospace = [ "Terminess Nerd Font" ]; - serif = [ "DeepMind Sans" ]; - sansSerif = [ "DeepMind Sans" ]; + monospace = [ fontMonospace ]; + serif = [ fontSans ]; + sansSerif = [ fontSans ]; }; }; }; -- cgit v1.2.3