all style stuff in one file

This commit is contained in:
Ingolf Wagner 2023-06-30 20:59:11 +02:00
parent 5675dc8b64
commit de68ba4ea2
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
8 changed files with 61 additions and 28 deletions

View file

@ -15,6 +15,7 @@ with lib;
./audio.nix ./audio.nix
./kmonad.nix ./kmonad.nix
./taskwarrior.nix ./taskwarrior.nix
./style.nix
]; ];
config = mkIf config.components.gui.enable { config = mkIf config.components.gui.enable {

View file

@ -0,0 +1,36 @@
{ pkgs, config, lib, ... }:
with lib;
{
options.components.gui.style.enable = mkOption {
type = lib.types.bool;
default = config.components.gui.enable;
};
config = mkIf (config.components.gui.style.enable) {
fonts.fonts = with pkgs; [
corefonts
hasklig
inconsolata
source-code-pro
symbola
ubuntu_font_family
# symbol fonts
# ------------
nerdfonts
powerline-fonts
font-awesome
fira-code-symbols
jetbrains-mono
# shell font
# ----------
terminus_font
gohufont
];
};
}

View file

@ -6,7 +6,7 @@ with lib;
config = mkIf config.components.gui.enable { config = mkIf config.components.gui.enable {
system.custom.fonts.enable = true; # system.custom.fonts.enable = true;
services.xserver = { services.xserver = {

View file

@ -22,7 +22,7 @@
# ---- # ----
programs.custom.urxvt.fontSize = 17; programs.custom.urxvt.fontSize = 17;
programs.custom.xterm.fontSize = 17; programs.custom.xterm.fontSize = 17;
system.custom.fonts.dpi = 140; # system.custom.fonts.dpi = 140;
# allow un-free # allow un-free
# ------------- # -------------

View file

@ -51,7 +51,7 @@
# ----- # -----
programs.custom.urxvt.fontSize = 12; programs.custom.urxvt.fontSize = 12;
programs.custom.xterm.fontSize = 12; programs.custom.xterm.fontSize = 12;
system.custom.fonts.dpi = 100; # system.custom.fonts.dpi = 100;
# x11 # x11
# --- # ---

View file

@ -34,7 +34,7 @@
#./system/audio.nix #./system/audio.nix
#./system/bluetooth.nix #./system/bluetooth.nix
./system/font.nix #./system/font.nix
#./system/mainUser.nix #./system/mainUser.nix
./system/on-failure.nix ./system/on-failure.nix

View file

@ -46,29 +46,25 @@ in
# defaultFonts = { monospace = [ "JetBrains Mono" ]; }; # defaultFonts = { monospace = [ "JetBrains Mono" ]; };
#}; #};
fonts = with pkgs; [ # fonts = with pkgs; [
# corefonts
corefonts # hasklig
hasklig # inconsolata
inconsolata # source-code-pro
source-code-pro # symbola
symbola # ubuntu_font_family
ubuntu_font_family # # symbol fonts
# # ------------
# symbol fonts # nerdfonts
# ------------ # powerline-fonts
nerdfonts # font-awesome
powerline-fonts # fira-code-symbols
font-awesome # jetbrains-mono
fira-code-symbols # # shell font
jetbrains-mono # # ----------
# terminus_font
# shell font # gohufont
# ---------- # ];
terminus_font
gohufont
];
}; };