fix stylix colors do not apply

This commit is contained in:
Damocles 2026-04-12 14:58:20 +02:00
parent 5b82205e63
commit 7e6ff4bc48

View file

@ -111,8 +111,6 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
programs.nova-shell.theme = lib.mkIf stylixAvailable (lib.mkDefault stylixTheme);
home.packages = home.packages =
[ [
self.packages.${pkgs.stdenv.hostPlatform.system}.nova-shell-cli self.packages.${pkgs.stdenv.hostPlatform.system}.nova-shell-cli
@ -124,8 +122,11 @@ in
(pkgs.formats.json { }).generate "nova-shell-modules.json" cfg.modules; (pkgs.formats.json { }).generate "nova-shell-modules.json" cfg.modules;
xdg.configFile."nova-shell/theme.json".source = xdg.configFile."nova-shell/theme.json".source =
(pkgs.formats.json { }).generate "nova-shell-theme.json" let
cfg.theme; stylixDefaults = if stylixAvailable then stylixTheme else { };
finalTheme = lib.recursiveUpdate stylixDefaults cfg.theme;
in
(pkgs.formats.json { }).generate "nova-shell-theme.json" finalTheme;
systemd.user.services.nova-shell = lib.mkIf cfg.systemd.enable { systemd.user.services.nova-shell = lib.mkIf cfg.systemd.enable {
Unit = { Unit = {