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>
17 lines
425 B
Nix
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;
|
|
};
|
|
}
|