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

39 lines
952 B
Nix
Raw Normal View History

2024-01-07 13:41:01 +00:00
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.custom-hm.alacritty;
in
{
options.custom-hm.alacritty = {
enable = mkEnableOption "alacritty";
};
config = mkIf cfg.enable {
programs.alacritty = {
enable = true;
settings = {
shell = {
program = config.programs.zellij.package + "/bin/zellij";
args = [
"attach"
"-c"
];
};
font.size = 10.0;
window = {
resize_increments = true;
dynamic_padding = true;
};
2024-01-07 13:41:01 +00:00
import = [
2024-01-13 03:06:58 +00:00
"${config.xdg.configHome}/alacritty/catppuccin-macchiato.toml"
2024-01-07 13:41:01 +00:00
];
};
};
2024-01-13 03:06:58 +00:00
xdg.configFile."alacritty/catppuccin-macchiato.toml".source = builtins.fetchurl {
url = "https://raw.githubusercontent.com/catppuccin/alacritty/main/catppuccin-macchiato.toml";
sha256 = "sha256:1iq187vg64h4rd15b8fv210liqkbzkh8sw04ykq0hgpx20w3qilv";
2024-01-07 13:41:01 +00:00
};
};
}