19 lines
297 B
Nix
19 lines
297 B
Nix
|
{
|
||
|
lib,
|
||
|
config,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
let
|
||
|
inherit (lib) mkEnableOption mkIf;
|
||
|
|
||
|
cfg = config.metacfg.tools.alacritty;
|
||
|
in
|
||
|
{
|
||
|
options.metacfg.tools.alacritty = {
|
||
|
enable = mkEnableOption "alacritty";
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable { environment.systemPackages = with pkgs; [ alacritty ]; };
|
||
|
}
|