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

15 lines
412 B
Nix
Raw Normal View History

2024-05-21 14:53:46 -07:00
{ config, lib, ... }:
let
inherit (lib) ctp;
inherit (config.catppuccin) sources;
cfg = config.programs.alacritty.catppuccin;
enable = cfg.enable && config.programs.alacritty.enable;
in
{
2024-05-21 14:53:46 -07:00
options.programs.alacritty.catppuccin = ctp.mkCatppuccinOpt "alacritty";
config = lib.mkIf enable {
programs.alacritty.settings = lib.importTOML "${sources.alacritty}/catppuccin-${cfg.flavour}.toml";
};
}