2022-07-20 13:52:39 +00:00
|
|
|
{pkgs, config, lib, ... }:
|
2022-07-20 18:50:10 +00:00
|
|
|
|
|
|
|
with config.stylix.fonts;
|
|
|
|
|
2022-07-20 13:52:39 +00:00
|
|
|
let
|
|
|
|
themeFile = config.lib.stylix.colors {
|
|
|
|
templateRepo = pkgs.fetchFromGitHub {
|
|
|
|
owner = "aarowill";
|
|
|
|
repo = "base16-alacritty";
|
|
|
|
rev = "914727e48ebf3eab1574e23ca0db0ecd0e5fe9d0";
|
2022-07-20 13:59:30 +00:00
|
|
|
sha256 = "sha256-oDsuiKx8gt+Ov7hZ9PibIQtE81IRSLO+n5N99WeiK34=";
|
2022-07-20 13:52:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
2022-07-25 19:38:43 +00:00
|
|
|
options.stylix.targets.alacritty.enable =
|
|
|
|
config.lib.stylix.mkEnableTarget "Alacritty" true;
|
|
|
|
|
|
|
|
config = lib.mkIf config.stylix.targets.alacritty.enable {
|
|
|
|
home-manager.sharedModules = [{
|
|
|
|
programs.alacritty.settings = {
|
|
|
|
font = {
|
|
|
|
normal = {
|
|
|
|
family = monospace.name;
|
|
|
|
style = "Regular";
|
|
|
|
};
|
2022-07-20 18:50:10 +00:00
|
|
|
};
|
2022-07-25 19:38:43 +00:00
|
|
|
import = [ themeFile ];
|
2022-07-20 18:50:10 +00:00
|
|
|
};
|
2022-07-25 19:38:43 +00:00
|
|
|
}];
|
|
|
|
};
|
2022-07-20 13:52:39 +00:00
|
|
|
}
|