2022-07-31 11:03:59 +02:00
|
|
|
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
2020-12-26 23:36:50 +01:00
|
|
|
{
|
2022-07-31 11:03:59 +02:00
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.magic_rb.programs.alacritty;
|
|
|
|
in {
|
2021-04-11 00:25:36 +02:00
|
|
|
options.magic_rb.programs.alacritty = {
|
|
|
|
enable = mkEnableOption "Enable the alacritty terminal emulator";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
alacritty
|
|
|
|
];
|
2020-12-26 23:36:50 +01:00
|
|
|
|
2021-04-11 00:25:36 +02:00
|
|
|
home.file = {
|
|
|
|
".config/alacritty/alacritty.yaml".source = ./alacritty.yaml;
|
|
|
|
};
|
2020-12-26 23:36:50 +01:00
|
|
|
};
|
|
|
|
}
|