2023-07-13 16:17:51 +00:00
|
|
|
{
|
2024-10-20 19:03:00 +00:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2024-11-05 04:55:40 +00:00
|
|
|
}:
|
|
|
|
let
|
2024-10-20 19:03:00 +00:00
|
|
|
inherit (config.rose-pine) sources;
|
|
|
|
|
|
|
|
cfg = config.services.polybar.rose-pine;
|
|
|
|
enable = cfg.enable && config.services.polybar.enable;
|
|
|
|
|
2024-11-05 04:55:40 +00:00
|
|
|
themeName = lib.rp.getKebabTheme cfg.flavor;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.services.polybar.rose-pine = lib.rp.mkRosePineOpt { name = "polybar"; };
|
2023-04-15 03:00:14 +00:00
|
|
|
|
2024-05-21 21:53:46 +00:00
|
|
|
config.services.polybar.extraConfig = lib.mkIf enable (
|
2024-10-20 19:03:00 +00:00
|
|
|
builtins.readFile "${sources.polybar}/schemes/${themeName}.ini"
|
2024-05-21 21:53:46 +00:00
|
|
|
);
|
2023-04-15 03:00:14 +00:00
|
|
|
}
|