11.stylix/modules/discord/vesktop.nix
2025-06-20 23:45:19 +01:00

29 lines
745 B
Nix

mkTarget:
{ lib, ... }:
mkTarget {
name = "vesktop";
humanName = "Vesktop";
extraOptions.themeBody = lib.mkOption {
type = lib.types.lines;
default = "";
internal = true;
};
configElements = (import ./common/theme-elements.nix "vesktop") ++ [
(
{ cfg }:
lib.mkIf (cfg.themeBody != (import ./common/theme-header.nix)) {
programs.vesktop.vencord = {
themes.stylix = cfg.themeBody;
settings.enabledThemes = [ "stylix.css" ];
};
}
)
];
imports = lib.singleton (
lib.mkRemovedOptionModule [ "stylix" "targets" "vesktop" "extraCss" ]
"CSS can be added to by declaring 'programs.vesktop.vencord.themes.stylix = lib.mkAfter \"YOUR EXTRA CSS\";"
);
}