11.stylix/modules/vesktop/hm.nix
Victor B 81df844355
vesktop: init (#365)
adds a generated theme to Vesktop
2024-05-20 12:58:22 +01:00

16 lines
405 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.targets.vesktop.enable {
home.file."${config.xdg.configHome}/vesktop/themes/stylix.theme.css" = {
source = themeFile;
};
};
}