11.stylix/modules/vesktop/hm.nix
Oliver Jõgar 934e2bfe79
vencord: init (#768)
Initialize the Vencord module and move the Vesktop template into the
Vencord module, as Vesktop is built on top of Vencord.

Closes: https://github.com/danth/stylix/issues/757
Link: https://github.com/danth/stylix/pull/768

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-01-13 15:51:04 +01:00

17 lines
425 B
Nix

{ config, lib, ... }:
let
themeFile = config.lib.stylix.colors {
template = ../vencord/template.mustache;
extension = ".css";
};
in
{
options.stylix.targets.vesktop.enable =
config.lib.stylix.mkEnableTarget "Vesktop" true;
config =
lib.mkIf (config.stylix.enable && config.stylix.targets.vesktop.enable)
{
xdg.configFile."vesktop/themes/stylix.theme.css".source = themeFile;
};
}