mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
17 lines
367 B
Nix
17 lines
367 B
Nix
{ 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" = {
|
|
source = ../config/alacritty/alacritty.yml;
|
|
recursive = true;
|
|
};
|
|
};
|
|
}
|