configs/alacritty: initial bits

This commit is contained in:
Aaron Bieber 2024-01-19 08:24:34 -07:00
parent bc7e9e60b7
commit 890606de70
No known key found for this signature in database
3 changed files with 37 additions and 0 deletions

35
configs/alacritty.nix Normal file
View File

@ -0,0 +1,35 @@
{ 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;
};
};
}

View File

@ -1,5 +1,6 @@
{ ... }: { { ... }: {
imports = [ imports = [
./alacritty.nix
./ca.nix ./ca.nix
./ci.nix ./ci.nix
./colemak.nix ./colemak.nix

View File

@ -102,6 +102,7 @@ with lib; {
SSH_AUTH_SOCK = "$HOME/.traygent"; SSH_AUTH_SOCK = "$HOME/.traygent";
}; };
systemPackages = with pkgs; (xinlib.filterList [ systemPackages = with pkgs; (xinlib.filterList [
alacritty
bc bc
beyt beyt
black black