rose-pine-nix/modules/home-manager/polybar.nix

14 lines
392 B
Nix
Raw Normal View History

2024-05-21 14:53:46 -07:00
{ config, lib, ... }:
let
inherit (config.catppuccin) sources;
cfg = config.services.polybar.catppuccin;
enable = cfg.enable && config.services.polybar.enable;
in
{
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 (
builtins.readFile "${sources.polybar}/themes/${cfg.flavor}.ini"
2024-05-21 14:53:46 -07:00
);
2023-04-14 20:00:14 -07:00
}