nixos-config/modules/home-manager/alacritty.nix

17 lines
353 B
Nix
Raw Normal View History

{ config, options, lib, pkgs, ... }:
let
cfg = config.modules.alacritty;
in
{
options.modules.alacritty.enable = lib.mkEnableOption "Enable Alacritty config";
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [ alacritty ];
xdg.configFile."alacritty" = {
2021-11-30 01:03:05 +00:00
source = ../config/alacritty;
recursive = true;
};
};
}