flake/programs/alacritty.nix

24 lines
667 B
Nix
Raw Normal View History

2024-01-10 18:23:27 +01:00
{
lib,
pkgs,
...
}: {
hm.programs.alacritty = let
theme = pkgs.fetchurl {
2024-07-31 15:40:43 +02:00
# url = "https://raw.githubusercontent.com/catppuccin/alacritty/ce476fb41f307d90f841c1a4fd7f0727c21248b2/catppuccin-macchiato.toml";
url = "https://raw.githubusercontent.com/rose-pine/alacritty/3c3e36eb5225b0eb6f1aa989f9d9e783a5b47a83/dist/rose-pine.toml";
hash = "sha256-MheSmzz02ZLAOS2uaclyazu6E//eikcdFydFfkio0/U=";
2024-01-10 18:23:27 +01:00
};
themeAttr = builtins.fromTOML (builtins.readFile theme);
in {
enable = true;
settings = lib.recursiveUpdate themeAttr {
font = {
normal.family = "Iosevka Nerd Font";
size = 12;
};
};
};
}