dotfiles/nix/home-manager/modules/alacritty/default.nix

21 lines
395 B
Nix
Raw Normal View History

{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.magic_rb.programs.alacritty;
in
{
options.magic_rb.programs.alacritty = {
enable = mkEnableOption "Enable the alacritty terminal emulator";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
alacritty
];
home.file = {
".config/alacritty/alacritty.yaml".source = ./alacritty.yaml;
};
};
}