33 lines
573 B
Nix
33 lines
573 B
Nix
|
{
|
||
|
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";
|
||
|
};
|
||
|
};
|
||
|
config = lib.mkif cfg.enable {
|
||
|
programs.alacritty = {
|
||
|
enable = true;
|
||
|
settings = {
|
||
|
general = {
|
||
|
import = [ "${pkgs.alacritty-theme}/gnome_terminal.toml" ];
|
||
|
};
|
||
|
font = {
|
||
|
size = 16;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|