Updated font config
This commit is contained in:
36
modules/features/fonts.nix
Normal file
36
modules/features/fonts.nix
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.fonts =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
fonts = {
|
||||||
|
packages = with pkgs; [
|
||||||
|
# Maple Mono
|
||||||
|
maple-mono.truetype
|
||||||
|
maple-mono.NF-unhinted
|
||||||
|
maple-mono.NF-CN-unhinted
|
||||||
|
|
||||||
|
# JetBrains Mono
|
||||||
|
nerd-fonts.jetbrains-mono
|
||||||
|
|
||||||
|
# Noto
|
||||||
|
noto-fonts
|
||||||
|
noto-fonts-cjk-sans
|
||||||
|
noto-fonts-color-emoji
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.homeManager.fonts = {
|
||||||
|
fonts.fontconfig = {
|
||||||
|
enable = true;
|
||||||
|
defaultFonts = {
|
||||||
|
sansSerif = [ "Noto Sans" ];
|
||||||
|
monospace = [
|
||||||
|
"Maple Mono"
|
||||||
|
"JetBrainsMono Nerd Font"
|
||||||
|
];
|
||||||
|
emoji = [ "Noto Color Emoji" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -10,7 +10,8 @@
|
|||||||
term = "xterm-256color";
|
term = "xterm-256color";
|
||||||
include = "${config.xdg.configHome}/foot/themes/noctalia";
|
include = "${config.xdg.configHome}/foot/themes/noctalia";
|
||||||
dpi-aware = "no";
|
dpi-aware = "no";
|
||||||
font = "JetBrainsMono Nerd Font:size=12";
|
font = "${builtins.head config.fonts.fontconfig.defaultFonts.monospace}:size=12";
|
||||||
|
pad = "10x10";
|
||||||
};
|
};
|
||||||
mouse = {
|
mouse = {
|
||||||
hide-when-typing = "yes";
|
hide-when-typing = "yes";
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
truncation_length = 5;
|
truncation_length = 5;
|
||||||
};
|
};
|
||||||
git_branch = {
|
git_branch = {
|
||||||
symbol = "";
|
symbol = "";
|
||||||
style = "bright-black";
|
style = "bright-black";
|
||||||
format = "[$symbol $branch]($style)";
|
format = "[$symbol $branch]($style)";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,21 +14,6 @@
|
|||||||
x11.enable = true;
|
x11.enable = true;
|
||||||
gtk.enable = true;
|
gtk.enable = true;
|
||||||
};
|
};
|
||||||
packages = with pkgs; [
|
|
||||||
nerd-fonts.jetbrains-mono
|
|
||||||
noto-fonts
|
|
||||||
noto-fonts-cjk-sans
|
|
||||||
noto-fonts-color-emoji
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
fonts.fontconfig = {
|
|
||||||
enable = true;
|
|
||||||
defaultFonts = {
|
|
||||||
sansSerif = [ "Noto Sans" ];
|
|
||||||
monospace = [ "JetBrainsMono Nerd Font" ];
|
|
||||||
emoji = [ "Noto Color Emoji" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
@@ -56,8 +41,8 @@
|
|||||||
style = "Breeze";
|
style = "Breeze";
|
||||||
};
|
};
|
||||||
Fonts = {
|
Fonts = {
|
||||||
fixed = "\"JetBrainsMono Nerd Font,12\"";
|
fixed = "\"${builtins.head config.fonts.fontconfig.defaultFonts.monospace},12\"";
|
||||||
general = "\"Noto Sans,12\"";
|
general = "\"${builtins.head config.fonts.fontconfig.defaultFonts.sansSerif},12\"";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
bluetooth
|
bluetooth
|
||||||
boot
|
boot
|
||||||
firmware
|
firmware
|
||||||
|
fonts
|
||||||
network
|
network
|
||||||
nix
|
nix
|
||||||
pipewire
|
pipewire
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ in
|
|||||||
direnv
|
direnv
|
||||||
fastfetch
|
fastfetch
|
||||||
firefox
|
firefox
|
||||||
|
fonts
|
||||||
foot
|
foot
|
||||||
fzf
|
fzf
|
||||||
git
|
git
|
||||||
|
|||||||
Reference in New Issue
Block a user