Skip to content

Commit

Permalink
nixcord: theme Vencord and Vesktop instead of just Vencord
Browse files Browse the repository at this point in the history
Closes: #802
Fixes: e594886 ("nixcord: init (#767)")
Link: #822

Co-authored-by: NAHO <[email protected]>
Reviewed-by: NAHO <[email protected]>
  • Loading branch information
ari-rs and trueNAHO committed Jan 30, 2025
1 parent 55418e8 commit 7fd04b4
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion modules/nixcord/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
}
);
Expand Down

0 comments on commit 7fd04b4

Please sign in to comment.