From b00c9f46ae6c27074d24d2db390f0ac5ebcc329f Mon Sep 17 00:00:00 2001 From: ari Date: Wed, 29 Jan 2025 11:54:55 -0600 Subject: [PATCH] nixcord: theme Vencord and Vesktop instead of just Vencord Closes: https://github.com/danth/stylix/issues/802 Fixes: e594886eb095 ("nixcord: init (#767)") Link: https://github.com/danth/stylix/pull/822 Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com> Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> --- modules/nixcord/hm.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/modules/nixcord/hm.nix b/modules/nixcord/hm.nix index 0a1ccb05..7042241b 100644 --- a/modules/nixcord/hm.nix +++ b/modules/nixcord/hm.nix @@ -20,7 +20,20 @@ in lib.mkIf (config.stylix.enable && cfg.enable && (config.programs ? nixcord)) ( lib.optionalAttrs (builtins.hasAttr "nixcord" options.programs) { - xdg.configFile."Vencord/themes/stylix.theme.css".source = themeFile; + xdg.configFile = + let + inherit (config.programs) nixcord; + in + lib.mkMerge [ + (lib.mkIf nixcord.discord.enable { + "Vencord/themes/stylix.theme.css".source = themeFile; + }) + + (lib.mkIf nixcord.vesktop.enable { + "vesktop/themes/stylix.theme.css".source = themeFile; + }) + ]; + programs.nixcord.config.enabledThemes = [ themeFileName ]; } );