makes the filetype of the file more clear and makes it possible for editorconfig (#945) to work for these files
18 lines
414 B
Nix
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;
|
|
};
|
|
}
|