nixcord: theme Vencord and Vesktop instead of just Vencord

Closes: https://github.com/danth/stylix/issues/802
Fixes: e594886eb0 ("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>
This commit is contained in:
ari 2025-01-29 11:54:55 -06:00 committed by NAHO
parent d9df2b4200
commit b00c9f46ae

View file

@ -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 ];
}
);