11.stylix/modules/halloy/hm.nix
Oliver Jõgar 87791e0665
halloy: init (#825)
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>
2025-02-08 15:29:44 +01:00

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;
};
}