11.stylix/modules/vesktop/hm.nix
Daniel Thwaites e3eb7fdf8d
vesktop: replace home.file with xdg.configFile (#575)
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-09-26 16:57:23 +02:00

14 lines
394 B
Nix

{ config, lib, ... }:
let
themeFile = config.lib.stylix.colors {
template = ./template.mustache;
extension = ".css";
};
in
{
options.stylix.targets.vesktop.enable = config.lib.stylix.mkEnableTarget "Vesktop" true;
config = lib.mkIf (config.stylix.enable && config.stylix.targets.vesktop.enable) {
xdg.configFile."vesktop/themes/stylix.theme.css".source = themeFile;
};
}