nix-config/homeManagerModules/programs/alacritty.nix

34 lines
625 B
Nix
Raw Normal View History

2024-11-11 18:45:30 +01:00
{
lib,
config,
pkgs,
...
}:
let
cfg = config.krop.hm.programs.alacritty;
in
{
options.krop.hm.programs.alacritty = {
enable = lib.mkOption {
type = lib.types.bool;
default = true;
example = false;
description = "Enable my alacritty configuration";
};
};
2024-11-11 18:47:16 +01:00
config = lib.mkIf cfg.enable {
2024-11-11 19:05:33 +01:00
home.packages = with pkgs; [ alacritty-theme ];
2024-11-11 18:45:30 +01:00
programs.alacritty = {
enable = true;
settings = {
general = {
import = [ "${pkgs.alacritty-theme}/gnome_terminal.toml" ];
};
font = {
size = 16;
};
};
};
};
}