diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-06-03 20:50:58 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-06-03 21:25:00 +0530 |
commit | d4f7650cd0735d1fe9173530cc31c24b65ed44ff (patch) | |
tree | 82086000936fed44120734ce2308207478d73954 /os | |
parent | 279ff6251173e161cc50d8ae03cb3cd2e90a61a4 (diff) |
global/font: init
Diffstat (limited to 'os')
-rw-r--r-- | os/cez/modules/wayland.nix | 16 |
1 files changed, 9 insertions, 7 deletions
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 ]; }; }; }; |