From 2b00c3b81aa13bfbf156e2d54f9888283dde11f3 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Thu, 3 Oct 2024 20:38:14 -0500 Subject: fonts fonts fonts --- modules/home/theme.nix | 4 ++++ modules/root/default.nix | 6 +++--- modules/root/fonts.nix | 15 +++++++++++++++ todo | 1 + 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 modules/root/fonts.nix diff --git a/modules/home/theme.nix b/modules/home/theme.nix index c49b8f5..57fee52 100644 --- a/modules/home/theme.nix +++ b/modules/home/theme.nix @@ -26,6 +26,10 @@ package = pkgs.cinnamon.mint-y-icons; name = "Mint-Y-${config.theme.mint.icons.color}"; }; + font = { + package = pkgs.inter; + name = "inter"; + }; cursorTheme = { name = "Adwaita"; }; diff --git a/modules/root/default.nix b/modules/root/default.nix index 2ef73aa..9a7affb 100644 --- a/modules/root/default.nix +++ b/modules/root/default.nix @@ -5,6 +5,7 @@ ./cups.nix ./doas.nix ./docker.nix + ./fonts.nix ./grub.nix ./home-manager.nix ./hosts.nix @@ -26,6 +27,7 @@ enable = lib.mkDefault false; btrfsSupport = lib.mkDefault true; }; + fonts.enable = lib.mkDefault true; grub = { enable = lib.mkDefault true; mode = lib.mkDefault "bios"; @@ -42,9 +44,7 @@ enable = lib.mkDefault true; extra.enable = lib.mkDefault false; }; - utils = { - enable = lib.mkDefault true; - }; + utils.enable = lib.mkDefault true; }; virtualisation.enable = lib.mkDefault false; wifi.enable = lib.mkDefault true; diff --git a/modules/root/fonts.nix b/modules/root/fonts.nix new file mode 100644 index 0000000..b72321a --- /dev/null +++ b/modules/root/fonts.nix @@ -0,0 +1,15 @@ +{ pkgs, lib, config, ... }: { + options = { + fonts.enable = lib.mkEnableOption "enables fonts"; + }; + + config = lib.mkIf config.fonts.enable { + fonts.packages = with pkgs; [ + inter + (nerdfonts.override { + fonts = [ "JetBrainsMono" ]; + }) + tamzen + ]; + }; +} diff --git a/todo b/todo index 324637c..a962662 100644 --- a/todo +++ b/todo @@ -7,6 +7,7 @@ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.ta inputleap for t495 ff violentmonkey userscripts pcmanfm config FIX +fonts.fontconfig.antialias = false && gtk font override on librex60 # Secrets wireguard -- cgit v1.2.3