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

17 lines
454 B
Nix
Raw Normal View History

2024-05-21 14:53:46 -07:00
{ config, lib, ... }:
let
inherit (config.catppuccin) sources;
cfg = config.programs.git.delta.catppuccin;
enable = cfg.enable && config.programs.git.delta.enable;
in
{
2024-05-21 14:53:46 -07:00
options.programs.git.delta.catppuccin = lib.ctp.mkCatppuccinOpt "catppuccin";
config = lib.mkIf enable {
programs.git = {
2024-05-21 14:53:46 -07:00
includes = [ { path = "${sources.delta}/catppuccin.gitconfig"; } ];
delta.options.features = "catppuccin-${cfg.flavour}";
};
};
}