dotfiles/nix/home-manager/modules/alacritty/default.nix
Magic_RB d3e46e5413
Complete module rework
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2021-08-19 18:24:36 +02:00

21 lines
395 B
Nix

{ 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;
};
};
}