diff --git a/modules/nixcord/hm.nix b/modules/nixcord/hm.nix index 7042241b..c3a3e6d2 100644 --- a/modules/nixcord/hm.nix +++ b/modules/nixcord/hm.nix @@ -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" ]; } ); }