2023-07-13 09:17:51 -07:00
|
|
|
{ config
|
|
|
|
, pkgs
|
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (builtins) fromTOML readFile;
|
|
|
|
cfg = config.programs.bottom.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.bottom.enable;
|
|
|
|
in
|
|
|
|
{
|
2023-04-17 09:44:07 -07:00
|
|
|
options.programs.bottom.catppuccin =
|
|
|
|
lib.ctp.mkCatppuccinOpt "bottom" config;
|
2023-04-14 19:54:32 -07:00
|
|
|
|
2023-07-13 09:17:51 -07:00
|
|
|
config.programs.bottom.settings = lib.mkIf enable (fromTOML (readFile (pkgs.fetchFromGitHub
|
|
|
|
{
|
|
|
|
owner = "catppuccin";
|
|
|
|
repo = "bottom";
|
|
|
|
rev = "c0efe9025f62f618a407999d89b04a231ba99c92";
|
|
|
|
sha256 = "sha256-VaHX2I/Gn82wJWzybpWNqU3dPi3206xItOlt0iF6VVQ=";
|
|
|
|
}
|
|
|
|
+ "/themes/${cfg.flavour}.toml")));
|
2023-04-14 19:54:32 -07:00
|
|
|
}
|