2024-05-21 14:53:46 -07:00
|
|
|
{ config, lib, ... }:
|
2023-07-13 09:17:51 -07:00
|
|
|
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
|
|
|
|
{
|
2024-06-28 09:29:30 -07:00
|
|
|
options.services.polybar.catppuccin = lib.ctp.mkCatppuccinOpt { name = "polybar"; };
|
2023-04-14 20:00:14 -07:00
|
|
|
|
2024-05-21 14:53:46 -07:00
|
|
|
config.services.polybar.extraConfig = lib.mkIf enable (
|
2024-05-21 17:23:55 -07:00
|
|
|
builtins.readFile "${sources.polybar}/themes/${cfg.flavor}.ini"
|
2024-05-21 14:53:46 -07:00
|
|
|
);
|
2023-04-14 20:00:14 -07:00
|
|
|
}
|