woot. got a working build again

This commit is contained in:
Chris Kruining 2025-07-28 11:20:21 +02:00
parent d700126642
commit ff0a8c5b1b
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
16 changed files with 73 additions and 89 deletions

View file

@ -5,6 +5,7 @@ let
inherit (lib.types) nullOr enum;
cfg = config.${namespace}.themes;
osCfg = osConfig.${namespace}.theming;
in {
options.${namespace}.themes = {
enable = mkEnableOption "Theming (Stylix)";
@ -23,12 +24,36 @@ in {
};
};
config = mkIf (cfg.enable && osConfig.${namespace}.theming.enable) {
config = mkIf (cfg.enable) {
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/${cfg.theme}.yaml";
image = ./${cfg.theme}.jpg;
polarity = cfg.polarity;
targets.qt.platform = mkDefault "kde6";
fonts = {
serif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Serif";
};
sansSerif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans";
};
monospace = {
package = pkgs.nerd-fonts.jetbrains-mono;
name = "JetBrainsMono Nerd Font Mono";
};
emoji = {
package = pkgs.noto-fonts-emoji;
name = "Noto Color Emoji";
};
};
};
};
}