xin/configs/alacritty.nix

36 lines
702 B
Nix
Raw Normal View History

2024-01-19 08:24:34 -07:00
{ pkgs, ... }:
let
theme = {
colors = {
primary = {
background = "#ffffea";
foreground = "#000000";
};
};
};
themeFormat = pkgs.formats.toml { };
themeFile = themeFormat.generate "plan9.toml" theme;
settings = {
import = [
"${themeFile}"
];
font = {
normal = {
family = "Go";
style = "Mono";
};
};
};
settingsFormat = pkgs.formats.toml { };
settingsFile = settingsFormat.generate "alacritty.toml" settings;
in
{
config = {
environment.etc = {
"alacritty/alacritty.toml".text = builtins.readFile settingsFile;
"alacritty/theme.yml".text = builtins.readFile themeFile;
};
};
}