rose-pine-nix/modules/home-manager/alacritty.nix
2023-04-18 20:01:16 -04:00

21 lines
600 B
Nix

{ config, pkgs, lib, ... }:
let cfg = config.programs.alacritty.catppuccin;
in {
options.programs.alacritty.catppuccin =
lib.ctp.mkCatppuccinOpt "alacritty" config;
config.programs.alacritty.settings = with builtins;
with lib;
with pkgs;
let
file = fetchFromGitHub
{
owner = "catppuccin";
repo = "alacritty";
rev = "3c808cbb4f9c87be43ba5241bc57373c793d2f17";
sha256 = "sha256-w9XVtEe7TqzxxGUCDUR9BFkzLZjG8XrplXJ3lX6f+x0=";
} + "/catppuccin-${cfg.flavour}.yml";
in
mkIf cfg.enable (ctp.fromYaml pkgs file);
}