From 890606de70c5c94f46c5ddb1e55022e19ecce5a8 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Fri, 19 Jan 2024 08:24:34 -0700 Subject: [PATCH] configs/alacritty: initial bits --- configs/alacritty.nix | 35 +++++++++++++++++++++++++++++++++++ configs/default.nix | 1 + gui/default.nix | 1 + 3 files changed, 37 insertions(+) create mode 100644 configs/alacritty.nix diff --git a/configs/alacritty.nix b/configs/alacritty.nix new file mode 100644 index 0000000..3751db8 --- /dev/null +++ b/configs/alacritty.nix @@ -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; + }; + }; +} diff --git a/configs/default.nix b/configs/default.nix index efa925d..e5fe8f4 100644 --- a/configs/default.nix +++ b/configs/default.nix @@ -1,5 +1,6 @@ { ... }: { imports = [ + ./alacritty.nix ./ca.nix ./ci.nix ./colemak.nix diff --git a/gui/default.nix b/gui/default.nix index 45cfc3f..ac8633f 100644 --- a/gui/default.nix +++ b/gui/default.nix @@ -102,6 +102,7 @@ with lib; { SSH_AUTH_SOCK = "$HOME/.traygent"; }; systemPackages = with pkgs; (xinlib.filterList [ + alacritty bc beyt black