Change font variables and simplify and standardize logic and formatting
This commit is contained in:
parent
01d16e03c8
commit
74b2840bf7
9 changed files with 33 additions and 27 deletions
|
@ -6,7 +6,7 @@
|
|||
settings = {
|
||||
main = {
|
||||
term = "xterm-256color";
|
||||
font = "${config.look.fonts.nerd}:size=14.7";
|
||||
font = "${config.look.fonts.mono}:size=14.7";
|
||||
};
|
||||
colors = {
|
||||
alpha = "0.85";
|
||||
|
|
|
@ -123,7 +123,7 @@
|
|||
# Fonts
|
||||
"font.name.serif.x-western" = config.look.fonts.main;
|
||||
"font.name.sans-serif.x-western" = config.look.fonts.main;
|
||||
"font.name.monospace.x-western" = config.look.fonts.nerd;
|
||||
"font.name.monospace.x-western" = config.look.fonts.mono;
|
||||
|
||||
# Theming and visibility
|
||||
"browser.aboutConfig.showWarning" = false;
|
||||
|
|
|
@ -2,9 +2,7 @@
|
|||
{
|
||||
config = lib.mkIf config.home.desktop.enable {
|
||||
dconf.settings = {
|
||||
"org/gnome/desktop/interface/color-scheme" = {
|
||||
color-scheme = "prefer-dark";
|
||||
};
|
||||
"org/gnome/desktop/interface/color-scheme".color-scheme = "prefer-dark";
|
||||
"org/virt-manager/virt-manager/connections" = {
|
||||
autoconnect = [ "qemu:///system" ];
|
||||
uris = [ "qemu:///system" ];
|
||||
|
|
|
@ -1,21 +1,7 @@
|
|||
{ config, lib, pkgsStable, ... }:
|
||||
{ ... }:
|
||||
{
|
||||
config = lib.mkIf config.home.desktop.enable {
|
||||
home.packages = with pkgsStable; [
|
||||
liberation_ttf
|
||||
twitter-color-emoji
|
||||
noto-fonts
|
||||
sarasa-gothic
|
||||
ubuntu_font_family
|
||||
(nerdfonts.override { fonts = [ "UbuntuMono" ]; })
|
||||
imports = [
|
||||
./fontconfig
|
||||
./packages
|
||||
];
|
||||
fonts.fontconfig = {
|
||||
enable = true;
|
||||
defaultFonts = {
|
||||
sansSerif = [ "Ubuntu" ];
|
||||
monospace = [ "UbuntuMono Nerd Font Mono" ];
|
||||
emoji = [ "Twitter Color Emoji" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
11
modules/home/settings/fonts/fontconfig/default.nix
Normal file
11
modules/home/settings/fonts/fontconfig/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
fonts.fontconfig = {
|
||||
enable = config.home.desktop.enable;
|
||||
defaultFonts = {
|
||||
sansSerif = [ config.look.fonts.main ];
|
||||
monospace = [ config.look.fonts.mono ];
|
||||
emoji = [ "Twitter Color Emoji" ];
|
||||
};
|
||||
};
|
||||
}
|
11
modules/home/settings/fonts/packages/default.nix
Normal file
11
modules/home/settings/fonts/packages/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, lib, pkgsStable, ... }:
|
||||
{
|
||||
home.packages = lib.mkIf config.home.desktop.enable (with pkgsStable; [
|
||||
liberation_ttf
|
||||
twitter-color-emoji
|
||||
noto-fonts
|
||||
sarasa-gothic
|
||||
ubuntu_font_family
|
||||
(nerdfonts.override { fonts = [ "UbuntuMono" ]; })
|
||||
]);
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, ... }:
|
||||
{
|
||||
imports = [
|
||||
./bookmarks
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
|
||||
config.look.fonts = {
|
||||
main = "Ubuntu";
|
||||
nerd = "UbuntuMono Nerd Font";
|
||||
mono = "UbuntuMono Nerd Font";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -300,7 +300,7 @@
|
|||
border: 0;
|
||||
border-radius: 0;
|
||||
min-height: 0;
|
||||
font-family: ${config.look.fonts.main}, ${config.look.fonts.nerd};
|
||||
font-family: ${config.look.fonts.main}, ${config.look.fonts.mono};
|
||||
font-size: 15.5px;
|
||||
color: #${config.look.colors.text};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue