nixcord: use new template format (#852)

Fixes: eb5f817567 ("{vencord,vesktop}: support fonts without IFD (#846)")
Link: https://github.com/danth/stylix/pull/852

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
Daniel Thwaites 2025-02-10 19:23:47 +00:00 committed by GitHub
parent 7f0154c371
commit 4af2686c1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,11 +5,12 @@
...
}:
let
themeFile = config.lib.stylix.colors {
template = ../vencord/template.mustache;
extension = ".css";
};
themeFileName = "stylix.theme.css";
template =
let
inherit (config.lib.stylix) colors;
inherit (config.stylix) fonts;
in
import ../vencord/template.nix { inherit colors fonts; };
cfg = config.stylix.targets.nixcord;
in
{
@ -26,15 +27,15 @@ in
in
lib.mkMerge [
(lib.mkIf nixcord.discord.enable {
"Vencord/themes/stylix.theme.css".source = themeFile;
"Vencord/themes/stylix.theme.css".text = template;
})
(lib.mkIf nixcord.vesktop.enable {
"vesktop/themes/stylix.theme.css".source = themeFile;
"vesktop/themes/stylix.theme.css".text = template;
})
];
programs.nixcord.config.enabledThemes = [ themeFileName ];
programs.nixcord.config.enabledThemes = [ "stylix.theme.css" ];
}
);
}