31 lines
697 B
Nix
31 lines
697 B
Nix
mkTarget:
|
|
{ lib, ... }:
|
|
mkTarget {
|
|
name = "vencord";
|
|
humanName = "Vencord";
|
|
|
|
extraOptions = {
|
|
themeBody = lib.mkOption {
|
|
type = lib.types.lines;
|
|
default = "";
|
|
internal = true;
|
|
};
|
|
extraCss = lib.mkOption {
|
|
description = "Extra CSS to added to Vencord's theme";
|
|
type = lib.types.lines;
|
|
default = "";
|
|
};
|
|
};
|
|
|
|
configElements = (import ./common/theme-elements.nix "vencord") ++ [
|
|
(
|
|
{ cfg }:
|
|
lib.mkIf
|
|
(cfg.themeBody != (import ./common/theme-header.nix) || cfg.extraCss != "")
|
|
{
|
|
xdg.configFile."Vencord/themes/stylix.theme.css".text =
|
|
cfg.themeBody + cfg.extraCss;
|
|
}
|
|
)
|
|
];
|
|
}
|