2023-07-13 09:17:51 -07:00
|
|
|
{ config
|
|
|
|
, pkgs
|
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (lib) ctp;
|
|
|
|
cfg = config.programs.alacritty.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.alacritty.enable;
|
|
|
|
in
|
|
|
|
{
|
2023-04-17 09:44:07 -07:00
|
|
|
options.programs.alacritty.catppuccin =
|
2023-07-13 09:17:51 -07:00
|
|
|
ctp.mkCatppuccinOpt "alacritty" config;
|
2023-04-15 16:48:38 -07:00
|
|
|
|
2023-07-13 09:17:51 -07:00
|
|
|
config.programs.alacritty.settings =
|
2023-04-15 16:48:38 -07:00
|
|
|
let
|
2023-07-13 09:17:51 -07:00
|
|
|
file =
|
|
|
|
pkgs.fetchFromGitHub
|
|
|
|
{
|
|
|
|
owner = "catppuccin";
|
|
|
|
repo = "alacritty";
|
|
|
|
rev = "3c808cbb4f9c87be43ba5241bc57373c793d2f17";
|
|
|
|
sha256 = "sha256-w9XVtEe7TqzxxGUCDUR9BFkzLZjG8XrplXJ3lX6f+x0=";
|
|
|
|
}
|
|
|
|
+ "/catppuccin-${cfg.flavour}.yml";
|
2023-04-18 17:01:16 -07:00
|
|
|
in
|
2023-07-13 09:17:51 -07:00
|
|
|
lib.mkIf enable (ctp.fromYaml pkgs file);
|
2023-04-15 16:48:38 -07:00
|
|
|
}
|