system/home/progs/alacritty/default.nix

25 lines
438 B
Nix

{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.progs.alacritty;
alacrittyConfig = import ./config.nix;
in
{
options.progs.alacritty = {
enable = mkOption {
type = types.bool;
default = false;
description = "Enable alacritty, GPU-accelerated terminal emulator";
};
};
config = mkIf cfg.enable {
programs.alacritty = {
enable = true;
settings = alacrittyConfig;
};
};
}