Link: https://github.com/danth/stylix/pull/825 Co-authored-by: Calvin Lee <pounce@integraldoma.in> Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
18 lines
409 B
Nix
18 lines
409 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
themeFile = config.lib.stylix.colors {
|
|
template = ./template.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;
|
|
};
|
|
}
|