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

18 lines
535 B
Nix
Raw Normal View History

2023-04-14 20:00:14 -07:00
{ config, pkgs, lib, ... }:
let cfg = config.services.polybar.catppuccin;
in {
2023-04-17 09:44:07 -07:00
options.services.polybar.catppuccin =
lib.ctp.mkCatppuccinOpt "polybar" config;
2023-04-14 20:00:14 -07:00
config.services.polybar.extraConfig = with builtins;
with lib;
with pkgs;
2023-04-18 17:01:16 -07:00
mkIf cfg.enable (readFile (fetchFromGitHub
{
owner = "catppuccin";
repo = "polybar";
rev = "9ee66f83335404186ce979bac32fcf3cd047396a";
sha256 = "sha256-bUbSgMg/sa2faeEUZo80GNmhOX3wn2jLzfA9neF8ERA=";
} + "/themes/${cfg.flavour}.ini"));
2023-04-14 20:00:14 -07:00
}