From 67adf5929167a527a172ec5c85ccd335fc54cc68 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sat, 18 Jan 2025 18:45:57 -0600 Subject: add libreX60 config. remove alacritty. add options for font --- modules/home/theme.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'modules/home') diff --git a/modules/home/theme.nix b/modules/home/theme.nix index 4128e1d..3bc1d8e 100644 --- a/modules/home/theme.nix +++ b/modules/home/theme.nix @@ -29,6 +29,18 @@ in { description = "mint-y icons color eg. 'Aqua' or 'Red'"; }; }; + theme.font = { + sansSerif = lib.mkOption { + type = lib.types.str; + default = "Inter"; + description = "default sans serif font"; + }; + sansSerif = lib.mkOption { + type = lib.types.str; + default = "CommitMono"; + description = "default monospace font"; + }; + }; }; config = { @@ -43,8 +55,7 @@ in { name = transformColorValue config.theme.mint.icons.color; }; font = { - package = pkgs.inter; - name = "Inter"; + name = config.theme.font.sansSerif; }; cursorTheme = { name = "Adwaita"; @@ -64,8 +75,8 @@ in { platformTheme.name = "gtk3"; }; fonts.fontconfig.defaultFonts = { - sansSerif = [ "Inter" ]; - monospace = [ "CommitMono" ]; + sansSerif = [ config.theme.fonts.sansSerif ]; + monospace = [ config.theme.fonts.monospace ]; }; }; } -- cgit v1.2.3