11.stylix/modules/halloy/hm.nix
awwpotato 489833b201
treewide: give mustache files correct file extensions (#946)
makes the filetype of the file more clear and makes it possible for
editorconfig (#945) to work for these files
2025-03-02 23:48:43 +00:00

18 lines
414 B
Nix

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