11.stylix/modules/vesktop/hm.nix
Flameopathic eb5f817567
{vencord,vesktop}: support fonts without IFD (#846)
Restores commit be606eaa87
after it was reverted in e72aa84da1,
with an alternative implementation which doesn't require
import-from-derivation.
2025-02-10 11:18:14 +00:00

33 lines
779 B
Nix

{
pkgs,
config,
lib,
...
}:
let
template =
let
inherit (config.lib.stylix) colors;
inherit (config.stylix) fonts;
in
import ../vencord/template.nix { inherit colors fonts; };
in
{
options.stylix.targets.vesktop.enable =
config.lib.stylix.mkEnableTarget "Vesktop" true;
config =
lib.mkIf (config.stylix.enable && config.stylix.targets.vesktop.enable)
(
lib.mkMerge [
(lib.mkIf pkgs.stdenv.hostPlatform.isLinux {
xdg.configFile."vesktop/themes/stylix.theme.css".text = template;
})
(lib.mkIf pkgs.stdenv.hostPlatform.isDarwin {
home.file."Library/Application Support/vesktop/themes/stylix.theme.css".text =
template;
})
]
);
}