11.stylix/modules/discord/vesktop.nix
NAHO 16df6b8448
treewide: rename mkTarget's configElements and extraOptions options
Rename mkTarget's 'configElements' argument to 'config' and
'extraOptions' to 'options' to provide a more transparent interface with
the underlying Nixpkgs module system.
2025-12-10 14:48:20 +01:00

29 lines
732 B
Nix

mkTarget:
{ lib, ... }:
mkTarget {
name = "vesktop";
humanName = "Vesktop";
options.themeBody = lib.mkOption {
type = lib.types.lines;
default = "";
internal = true;
};
config = (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\";"
);
}