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