refactor: rename vars.user to vars.mainUser

This commit is contained in:
matt1432 2024-01-09 13:13:04 -05:00
parent b0542f4f2d
commit 77643378cc
27 changed files with 141 additions and 102 deletions

View file

@ -1,4 +1,6 @@
{config, ...}: {
{config, ...}: let
inherit (config.vars) fontSize;
in {
programs.alacritty = {
enable = true;
settings = {
@ -37,7 +39,7 @@
family = "JetBrainsMono Nerd Font";
style = "Italic";
};
size = config.vars.fontSize;
size = fontSize;
};
# https://github.com/dracula/alacritty/blob/05faff15c0158712be87d200081633d9f4850a7d/dracula.yml

View file

@ -3,7 +3,9 @@
lib,
config,
...
}: {
}: let
inherit (config.vars) fontSize;
in {
home.pointerCursor = {
name = "Dracula-cursors";
package = pkgs.dracula-theme;
@ -31,7 +33,7 @@
font = {
name = "Sans Serif";
size = config.vars.fontSize;
size = fontSize;
};
};
@ -49,15 +51,15 @@
"${pkgs.dracula-theme}/xres";
xdg.configFile = let
fontSize = lib.strings.floatToString config.vars.fontSize;
floatFont = lib.strings.floatToString fontSize;
qtconf =
/*
ini
*/
''
[Fonts]
fixed="Sans Serif,${fontSize},-1,5,50,0,0,0,0,0"
general="Sans Serif,${fontSize},-1,5,50,0,0,0,0,0"
fixed="Sans Serif,${floatFont},-1,5,50,0,0,0,0,0"
general="Sans Serif,${floatFont},-1,5,50,0,0,0,0,0"
[Appearance]
icon_theme=Flat-Remix-Violet-Dark