2023-07-13 09:17:51 -07:00
|
|
|
{ config
|
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
2024-05-13 13:33:16 -07:00
|
|
|
inherit (config.catppuccin) sources;
|
2023-07-13 09:17:51 -07:00
|
|
|
cfg = config.services.polybar.catppuccin;
|
|
|
|
enable = cfg.enable && config.services.polybar.enable;
|
|
|
|
in
|
|
|
|
{
|
2023-04-17 09:44:07 -07:00
|
|
|
options.services.polybar.catppuccin =
|
2023-11-02 10:55:47 -07:00
|
|
|
lib.ctp.mkCatppuccinOpt "polybar";
|
2023-04-14 20:00:14 -07:00
|
|
|
|
2023-11-02 10:55:47 -07:00
|
|
|
config.services.polybar.extraConfig = lib.mkIf enable
|
|
|
|
(builtins.readFile "${sources.polybar}/themes/${cfg.flavour}.ini");
|
2023-04-14 20:00:14 -07:00
|
|
|
}
|