refactor: major theme refactor
new profile catagory: theme. refactor modules for wallpaper, fonts, gtk, and qt. adjusted modules that depend on old theming modules
This commit is contained in:
parent
7d910ba77c
commit
f5e87f2a79
34 changed files with 217 additions and 118 deletions
|
|
@ -2,19 +2,15 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./fonts
|
||||
./monitors
|
||||
./wallpaper
|
||||
./nix
|
||||
./userDirs
|
||||
./home
|
||||
./nixColors
|
||||
./mimeApps
|
||||
];
|
||||
|
||||
options.homeModules.config = {
|
||||
nix.enable = lib.mkEnableOption "enable nix configuration module";
|
||||
nixColors.enable = lib.mkEnableOption "enable nixColors configuration module";
|
||||
home.enable = lib.mkEnableOption "enable home configuration module";
|
||||
userDirs.enable = lib.mkEnableOption "enable userDirs configuration module";
|
||||
mimeApps.enable = lib.mkEnableOption "enable mimeApps configuration module";
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
{ lib, ... }:
|
||||
let inherit (lib) types mkOption;
|
||||
in
|
||||
{
|
||||
options.wallpaper = mkOption {
|
||||
type = types.path;
|
||||
default = "";
|
||||
description = ''
|
||||
Wallpaper path
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
@ -3,5 +3,6 @@
|
|||
./desktop
|
||||
./console
|
||||
./config
|
||||
./theme
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
let
|
||||
cfg = config.homeModules.desktop.browser.schizofox;
|
||||
fonts = config.homeModules.theme.fonts;
|
||||
inherit (config.colorscheme) colors;
|
||||
in
|
||||
|
||||
|
|
@ -13,7 +14,7 @@ in
|
|||
programs.schizofox = {
|
||||
enable = true;
|
||||
theme = {
|
||||
font = "${config.fontProfiles.regular.family}";
|
||||
font = "${fonts.regular.family}";
|
||||
colors = {
|
||||
background-darker = "${colors.base00}";
|
||||
background = "${colors.base01}";
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
let
|
||||
cfg = config.homeModules.desktop.communication.discord;
|
||||
fonts = config.homeModules.theme.fonts;
|
||||
inherit (config.colorscheme) colors;
|
||||
in
|
||||
|
||||
|
|
@ -29,8 +30,8 @@ in
|
|||
--nix-accent: #${colors.base08};
|
||||
--nix-hi: #${colors.base0B};
|
||||
|
||||
--font-mono: ${config.fontProfiles.monospace.family}, monospace;
|
||||
--font-regular: ${config.fontProfiles.regular.family}, sans serif;
|
||||
--font-mono: ${fonts.monospace.family}, monospace;
|
||||
--font-regular: ${fonts.regular.family}, sans serif;
|
||||
|
||||
/* server collapse */
|
||||
--sb-collapsed-width: 12px;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./themeSettings # done
|
||||
# ./themeSettings # done
|
||||
./browser # done -- firefox still need: chrome, brave
|
||||
#./creative -- still needs to be implemented
|
||||
./communication # only discord implemented
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
let
|
||||
cfg = config.homeModules.desktop.productivity.zathura;
|
||||
inherit (config.colorscheme) colors;
|
||||
fonts = config.homeModules.theme.fonts;
|
||||
in
|
||||
|
||||
{
|
||||
|
|
@ -10,7 +11,7 @@ in
|
|||
programs.zathura = {
|
||||
enable = true;
|
||||
options = {
|
||||
font = "${config.fontProfiles.regular.family} 14";
|
||||
font = "${fonts.regular.family} 14";
|
||||
recolor = true;
|
||||
selection-clipboard = "clipboard";
|
||||
default-bg = "#${colors.base00}";
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
let
|
||||
inherit (config.colorscheme) colors;
|
||||
fonts = config.homeModules.theme.fonts;
|
||||
cfg = config.homeModules.desktop.terminal.foot;
|
||||
in
|
||||
|
||||
|
|
@ -16,10 +17,10 @@ in
|
|||
server.enable = true;
|
||||
settings = {
|
||||
main = {
|
||||
font = "${config.fontProfiles.monospace.family}:pixelsize=18:antialias=true";
|
||||
font-bold = "${config.fontProfiles.monospace.family}:style=Bold:pixelsize=18:antialias=true";
|
||||
font-italic = "${config.fontProfiles.monospace.family}:style=Italic:pixelsize=18:antialias=true";
|
||||
font-bold-italic = "${config.fontProfiles.monospace.family}:style=Bold Italic:pixelsize=18:antialias=true";
|
||||
font = "${fonts.monospace.family}:pixelsize=18:antialias=true";
|
||||
font-bold = "${fonts.monospace.family}:style=Bold:pixelsize=18:antialias=true";
|
||||
font-italic = "${fonts.monospace.family}:style=Italic:pixelsize=18:antialias=true";
|
||||
font-bold-italic = "${fonts.monospace.family}:style=Bold Italic:pixelsize=18:antialias=true";
|
||||
dpi-aware = "yes";
|
||||
letter-spacing = "-1px";
|
||||
bold-text-in-bright = "palette-based";
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@
|
|||
|
||||
let
|
||||
inherit (config.colorscheme) colors;
|
||||
fonts = config.homeModules.theme.font;
|
||||
cfg = config.homeModules.desktop.terminal.kitty;
|
||||
fish = config.homeModules.console.shell.fish;
|
||||
in
|
||||
{
|
||||
|
||||
|
|
@ -14,10 +16,10 @@ in
|
|||
programs.kitty = {
|
||||
enable = true;
|
||||
font = {
|
||||
name = config.fontProfiles.monospace.family;
|
||||
name = fonts.monospace.family;
|
||||
size = 12;
|
||||
};
|
||||
shellIntegration.enableFishIntegration = true;
|
||||
shellIntegration.enableFishIntegration = lib.mkif fish.enable true;
|
||||
settings = {
|
||||
scrollback_lines = 4000;
|
||||
scrollback_pager_history_size = 2048;
|
||||
|
|
|
|||
|
|
@ -1,16 +0,0 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
cfg = config.homeModules.desktop.themeSettings;
|
||||
in
|
||||
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.pointerCursor = {
|
||||
package = pkgs.bibata-cursors;
|
||||
name = "Bibata-Modern-Ice";
|
||||
size = 22;
|
||||
gtk.enable = true;
|
||||
x11.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./cursor.nix
|
||||
./fonts.nix
|
||||
./gtk.nix
|
||||
./qt.nix
|
||||
];
|
||||
|
||||
# settings to be expanded on in the future
|
||||
options.homeModules.desktop.themeSettings = {
|
||||
enable = lib.mkEnableOption "Enable theme settings";
|
||||
};
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
let
|
||||
cfg = config.homeModules.desktop.themeSettings;
|
||||
in
|
||||
{
|
||||
config = lib. mkIf cfg.enable {
|
||||
fontProfiles = {
|
||||
enable = true;
|
||||
monospace = {
|
||||
family = "JetBrainsMono Nerd Font";
|
||||
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
|
||||
};
|
||||
regular = {
|
||||
family = "Fira Sans";
|
||||
package = pkgs.fira;
|
||||
};
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
fonts = config.homeModules.theme.fonts;
|
||||
cfg = config.homeModules.desktop.wayland.bar.waybar;
|
||||
monitorWidth = (lib.head config.monitors).width - 20;
|
||||
inherit (config.colorscheme) colors;
|
||||
|
|
@ -78,7 +79,7 @@ in
|
|||
};
|
||||
style = /* css */ ''
|
||||
* {
|
||||
font-family: "${config.fontProfiles.monospace.family}";
|
||||
font-family: "${fonts.monospace.family}";
|
||||
font-size: 19px;
|
||||
border: solid #${colors.base05};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
fonts = config.homeModules.theme.fonts;
|
||||
cfg = config.homeModules.desktop.wayland.launcher.rofi;
|
||||
in
|
||||
|
||||
|
|
@ -8,7 +9,7 @@ in
|
|||
config = lib.mkIf cfg.enable {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
font = "${config.fontProfiles.monospace.family}";
|
||||
font = "${fonts.monospace.family}";
|
||||
package = pkgs.rofi-wayland;
|
||||
terminal = "${config.home.sessionVariables.TERMINAL}";
|
||||
theme = let
|
||||
|
|
@ -24,7 +25,7 @@ in
|
|||
background-color = mkLiteral "@background";
|
||||
border-color = mkLiteral "@foreground";
|
||||
text-color = mkLiteral "@foreground";
|
||||
font = mkLiteral "'${config.fontProfiles.monospace.family} 14'";
|
||||
font = mkLiteral "'${fonts.monospace.family} 14'";
|
||||
};
|
||||
|
||||
"window" = {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
let
|
||||
cfg = config.homeModules.desktop.wayland.launcher.tofi;
|
||||
fonts = config.homeModules.theme.fonts;
|
||||
inherit (config.colorscheme) colors;
|
||||
in
|
||||
|
||||
|
|
@ -24,7 +25,7 @@ in
|
|||
result-spacing = 10
|
||||
selection-background-padding = 30
|
||||
prompt-padding = 10
|
||||
font = "${config.fontProfiles.monospace.family}"
|
||||
font = "${fonts.monospace.family}"
|
||||
font-size = 14
|
||||
prompt-text = " "
|
||||
background-color = #0000
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
let
|
||||
cfg = config.homeModules.desktop.wayland.lockscreen.hyprlock;
|
||||
fonts = config.homeModules.theme.fonts;
|
||||
inherit (config.colorscheme) colors;
|
||||
in
|
||||
|
||||
|
|
@ -55,7 +56,7 @@ in
|
|||
};
|
||||
color = "0xff${colors.base08}";
|
||||
font_size = 30;
|
||||
font_family = "${config.fontProfiles.monospace.family}";
|
||||
font_family = "${fonts.monospace.family}";
|
||||
}
|
||||
{
|
||||
monitor = "";
|
||||
|
|
@ -66,7 +67,7 @@ in
|
|||
};
|
||||
color = "0xff${colors.base0B}";
|
||||
font_size = 20;
|
||||
font_family = "${config.fontProfiles.monospace.family}";
|
||||
font_family = "${fonts.monospace.family}";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
let
|
||||
inherit (config.colorscheme) colors;
|
||||
fonts = config.homeModules.theme.fonts;
|
||||
wallpaperPath = config.homeModules.theme.wallpaper.path;
|
||||
cfg = config.homeModules.desktop.wayland.lockscreen.swaylock;
|
||||
in
|
||||
{
|
||||
|
|
@ -10,8 +12,8 @@ in
|
|||
programs.swaylock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
image = "${config.wallpaper}";
|
||||
font = config.fontProfiles.monospace.family;
|
||||
image = "${wallpaperPath}";
|
||||
font = fonts.monospace.family;
|
||||
color = "#${colors.base01}";
|
||||
ring-color = "#${colors.base02}";
|
||||
inside-wrong-color = "#${colors.base08}";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
inherit (config.colorscheme) colors kind;
|
||||
fonts = config.homeModules.theme.fonts;
|
||||
cfg = config.homeModules.desktop.wayland.notification.mako;
|
||||
in {
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
|
@ -11,7 +12,7 @@ in {
|
|||
"${config.gtk.iconTheme.package}/share/icons/Papirus-Dark"
|
||||
else
|
||||
"${config.gtk.iconTheme.package}/share/icons/Papirus-Light";
|
||||
font = "${config.fontProfiles.regular.family} 12";
|
||||
font = "${fonts.regular.family} 12";
|
||||
padding = "10,10";
|
||||
anchor = "top-right";
|
||||
width = 300;
|
||||
|
|
|
|||
|
|
@ -9,5 +9,6 @@
|
|||
./misc.nix
|
||||
./monitor.nix
|
||||
./gestures.nix
|
||||
./hyprpaper.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,13 +9,10 @@ in
|
|||
wayland.windowManager.hyprland.settings = {
|
||||
exec = [
|
||||
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"
|
||||
"${pkgs.swaybg}/bin/swaybg -i ${config.wallpaper} --mode fill"
|
||||
];
|
||||
exec-once = [
|
||||
"${pkgs._1password-gui}/bin/1password --silent"
|
||||
"${pkgs.live-buds-cli}/bin/earbuds -d"
|
||||
"eww daemon && eww open bar"
|
||||
"systemctl --user start clight"
|
||||
"waybar"
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -0,0 +1,19 @@
|
|||
{ lib, config, inputs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
||||
wallpaperPath = config.homeModules.theme.wallpaper.path;
|
||||
in
|
||||
|
||||
{
|
||||
imports = [ inputs.hyprpaper.homeManagerModules.hyprpaper ];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.hyprpaper = {
|
||||
enable = true;
|
||||
preloads = ["${wallpaperPath}"];
|
||||
wallpapers = [", ${wallpaperPath}"];
|
||||
ipc = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
38
home/modules/theme/cursor/default.nix
Normal file
38
home/modules/theme/cursor/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.homeModules.theme.cursor;
|
||||
in
|
||||
|
||||
{
|
||||
options.homeModules.theme.cursor = {
|
||||
enable = lib.mkEnableOption "Enable cursor module";
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = null;
|
||||
description = "Package for cursor";
|
||||
example = "pkgs.bibata-cursors";
|
||||
};
|
||||
name = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "";
|
||||
description = "Name of cursor";
|
||||
example = "Bibata-Modern-Ice";
|
||||
};
|
||||
size = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = 22;
|
||||
description = "Size of cursor";
|
||||
example = "22";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.pointerCursor = {
|
||||
package = cfg.package;
|
||||
name = cfg.name;
|
||||
size = cfg.size;
|
||||
gtk.enable = true;
|
||||
x11.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
9
home/modules/theme/default.nix
Normal file
9
home/modules/theme/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
imports = [
|
||||
./fonts
|
||||
./cursor
|
||||
./gtk
|
||||
./qt
|
||||
./wallpaper
|
||||
];
|
||||
}
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
{ lib, config, ... }:
|
||||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
mkFontOption = kind: {
|
||||
family = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = null;
|
||||
default = "";
|
||||
description = "Family name for ${kind} font profile";
|
||||
example = "Fira Code";
|
||||
};
|
||||
|
|
@ -15,10 +15,10 @@ let
|
|||
example = "pkgs.fira-code";
|
||||
};
|
||||
};
|
||||
cfg = config.fontProfiles;
|
||||
cfg = config.homeModules.theme.fonts;
|
||||
in
|
||||
{
|
||||
options.fontProfiles = {
|
||||
options.homeModules.theme.fonts = {
|
||||
enable = lib.mkEnableOption "Whether to enable font profiles";
|
||||
monospace = mkFontOption "monospace";
|
||||
regular = mkFontOption "regular";
|
||||
|
|
@ -27,6 +27,14 @@ in
|
|||
|
||||
config = lib.mkIf cfg.enable {
|
||||
fonts.fontconfig.enable = true;
|
||||
home.packages = [ cfg.monospace.package cfg.regular.package ];
|
||||
home.packages = [
|
||||
cfg.monospace.package
|
||||
cfg.regular.package
|
||||
|
||||
pkgs.noto-fonts
|
||||
pkgs.noto-fonts-cjk
|
||||
pkgs.noto-fonts-emoji
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -2,14 +2,19 @@
|
|||
|
||||
let
|
||||
inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) gtkThemeFromScheme;
|
||||
cfg = config.homeModules.desktop.themeSettings;
|
||||
cfg = config.homeModules.theme.gtk;
|
||||
in
|
||||
{
|
||||
options.homeModules.theme.gtk = {
|
||||
enable = lib.mkEnableOption "Enable gtk theme module";
|
||||
# TODO: add theme option
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable (rec {
|
||||
gtk = {
|
||||
enable = true;
|
||||
font = {
|
||||
name = config.fontProfiles.regular.family;
|
||||
name = config.homeModules.theme.fonts.regular.family;
|
||||
size = 12;
|
||||
};
|
||||
theme = {
|
||||
|
|
@ -33,3 +38,4 @@ in
|
|||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -1,8 +1,10 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.homeModules.desktop.themeSettings;
|
||||
cfg = config.homeModules.theme.qt;
|
||||
in
|
||||
{
|
||||
options.homeModules.theme.qt.enable = lib.mkEnableOption "Enable qt module";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
qt = {
|
||||
enable = true;
|
||||
|
|
@ -10,3 +12,4 @@ in
|
|||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -1,25 +1,28 @@
|
|||
{ lib, config, inputs, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.homeModules.config.nixColors;
|
||||
inherit (inputs.nix-colors) colorSchemes;
|
||||
let
|
||||
inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) nixWallpaperFromScheme;
|
||||
inherit (lib) types mkDefault mkIf mkOption mkEnableOption;
|
||||
|
||||
cfg = config.homeModules.theme.wallpaper;
|
||||
in
|
||||
|
||||
{
|
||||
imports = [ inputs.nix-colors.homeManagerModule ];
|
||||
options.homeModules.theme.wallpaper = {
|
||||
enable = mkEnableOption "Enable wallpaper module";
|
||||
path = mkOption {
|
||||
type = types.path;
|
||||
default = null;
|
||||
description = "Wallpaper Path";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
colorscheme = lib.mkDefault colorSchemes.gruvbox-material-dark-soft;
|
||||
home.file.".colorscheme".text = config.colorscheme.slug;
|
||||
|
||||
wallpaper =
|
||||
config = mkIf cfg.enable {
|
||||
homeModules.theme.wallpaper.path =
|
||||
let
|
||||
largest = f: xs: builtins.head (builtins.sort (a: b: a > b) (map f xs));
|
||||
largestWidth = largest (x: x.width) config.monitors;
|
||||
largestHeight = largest (x: x.height) config.monitors;
|
||||
in
|
||||
lib.mkDefault (nixWallpaperFromScheme
|
||||
mkDefault (nixWallpaperFromScheme
|
||||
{
|
||||
scheme = config.colorscheme;
|
||||
width = largestWidth;
|
||||
|
|
@ -28,3 +31,4 @@ in
|
|||
});
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -15,7 +15,7 @@ in
|
|||
|
||||
config = {
|
||||
nix.enable = true;
|
||||
nixColors.enable = true;
|
||||
# nixColors.enable = true;
|
||||
home.enable = true;
|
||||
userDirs.enable = true;
|
||||
mimeApps.enable = true;
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ in
|
|||
#./creative
|
||||
./productivity
|
||||
./gaming
|
||||
./themes
|
||||
];
|
||||
|
||||
options = {
|
||||
|
|
|
|||
|
|
@ -54,8 +54,6 @@ in
|
|||
youtube.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
themeSettings.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
27
home/profile/themes/default.nix
Normal file
27
home/profile/themes/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
# let
|
||||
# cfg = config.theme;
|
||||
# in
|
||||
|
||||
{
|
||||
imports = [
|
||||
./minimal
|
||||
];
|
||||
|
||||
options.theme = {
|
||||
minimal.enable = lib.mkEnableOption "enable minimal theme";
|
||||
};
|
||||
|
||||
# config = {
|
||||
# assertions = [
|
||||
# {
|
||||
# assertion =
|
||||
# (lib.length (lib.filter (x: x) [
|
||||
# cfg.minimal or false
|
||||
# cfg.OTHERTHEMEHERE or false
|
||||
# ]) <= 1);
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
}
|
||||
42
home/profile/themes/minimal/default.nix
Normal file
42
home/profile/themes/minimal/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, config, pkgs, inputs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.theme.minimal;
|
||||
inherit (inputs.nix-colors) colorSchemes;
|
||||
in
|
||||
|
||||
{
|
||||
imports = [ inputs.nix-colors.homeManagerModule ];
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
colorscheme = colorSchemes.gruvbox-material-dark-soft;
|
||||
home.file.".colorscheme".text = config.colorscheme.slug;
|
||||
home.sessionVariables.COLOR_SCHEME = "${config.colorscheme.slug}";
|
||||
|
||||
homeModules.theme = {
|
||||
fonts.enable = true;
|
||||
fonts.regular = {
|
||||
family = "Fira Sans";
|
||||
package = pkgs.fira;
|
||||
};
|
||||
fonts.monospace = {
|
||||
family = "JetBrainsMono Nerd Font";
|
||||
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
|
||||
};
|
||||
|
||||
cursor.enable = true;
|
||||
cursor = {
|
||||
name = "Bibata-Modern-Ice";
|
||||
package = pkgs.bibata-cursors;
|
||||
size = 22;
|
||||
};
|
||||
|
||||
wallpaper = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
gtk.enable = true;
|
||||
qt.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
activeProfiles = ["base" "hyprland" "productivity" "gaming"];
|
||||
|
||||
theme = "minimal";
|
||||
|
||||
home.sessionVariables.HN = "ooksdesk";
|
||||
|
||||
homeModules.desktop.wayland.nvidia = true;
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
activeProfiles = ["base" "hyprland" "productivity"];
|
||||
|
||||
theme.minimal.enable = true;
|
||||
|
||||
home.sessionVariables.HN = "ookst480s";
|
||||
|
||||
monitors = [{
|
||||
|
|
@ -17,7 +19,5 @@
|
|||
primary = true;
|
||||
transform = 0;
|
||||
}];
|
||||
|
||||
colorscheme = inputs.nix-colors.colorSchemes.gruvbox-material-dark-soft;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue