rose-pine-nix/modules/home-manager/polybar.nix
2024-05-21 22:53:46 +01:00

13 lines
381 B
Nix

{ 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 "polybar";
config.services.polybar.extraConfig = lib.mkIf enable (
builtins.readFile "${sources.polybar}/themes/${cfg.flavour}.ini"
);
}