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 = {
|
settings = {
|
||||||
main = {
|
main = {
|
||||||
term = "xterm-256color";
|
term = "xterm-256color";
|
||||||
font = "${config.look.fonts.nerd}:size=14.7";
|
font = "${config.look.fonts.mono}:size=14.7";
|
||||||
};
|
};
|
||||||
colors = {
|
colors = {
|
||||||
alpha = "0.85";
|
alpha = "0.85";
|
||||||
|
|
|
@ -123,7 +123,7 @@
|
||||||
# Fonts
|
# Fonts
|
||||||
"font.name.serif.x-western" = config.look.fonts.main;
|
"font.name.serif.x-western" = config.look.fonts.main;
|
||||||
"font.name.sans-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
|
# Theming and visibility
|
||||||
"browser.aboutConfig.showWarning" = false;
|
"browser.aboutConfig.showWarning" = false;
|
||||||
|
|
|
@ -2,9 +2,7 @@
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.home.desktop.enable {
|
config = lib.mkIf config.home.desktop.enable {
|
||||||
dconf.settings = {
|
dconf.settings = {
|
||||||
"org/gnome/desktop/interface/color-scheme" = {
|
"org/gnome/desktop/interface/color-scheme".color-scheme = "prefer-dark";
|
||||||
color-scheme = "prefer-dark";
|
|
||||||
};
|
|
||||||
"org/virt-manager/virt-manager/connections" = {
|
"org/virt-manager/virt-manager/connections" = {
|
||||||
autoconnect = [ "qemu:///system" ];
|
autoconnect = [ "qemu:///system" ];
|
||||||
uris = [ "qemu:///system" ];
|
uris = [ "qemu:///system" ];
|
||||||
|
|
|
@ -1,21 +1,7 @@
|
||||||
{ config, lib, pkgsStable, ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.home.desktop.enable {
|
imports = [
|
||||||
home.packages = with pkgsStable; [
|
./fontconfig
|
||||||
liberation_ttf
|
./packages
|
||||||
twitter-color-emoji
|
|
||||||
noto-fonts
|
|
||||||
sarasa-gothic
|
|
||||||
ubuntu_font_family
|
|
||||||
(nerdfonts.override { fonts = [ "UbuntuMono" ]; })
|
|
||||||
];
|
];
|
||||||
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 = [
|
imports = [
|
||||||
./bookmarks
|
./bookmarks
|
||||||
|
|
|
@ -6,6 +6,6 @@
|
||||||
|
|
||||||
config.look.fonts = {
|
config.look.fonts = {
|
||||||
main = "Ubuntu";
|
main = "Ubuntu";
|
||||||
nerd = "UbuntuMono Nerd Font";
|
mono = "UbuntuMono Nerd Font";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -300,7 +300,7 @@
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
min-height: 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;
|
font-size: 15.5px;
|
||||||
color: #${config.look.colors.text};
|
color: #${config.look.colors.text};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue