From d0e097574e4902c15915639f118ba4ec577ea3c3 Mon Sep 17 00:00:00 2001 From: Jacob Bachmann Date: Wed, 24 Apr 2024 20:33:38 +0200 Subject: [PATCH] feat: add alacritty alabaster color theme patch --- modules/packages.nix | 1 + .../modules/gui/programs/alacritty.nix | 28 +++++++++++++++++-- users/gandalf/modules/neovim/default.nix | 2 ++ 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/modules/packages.nix b/modules/packages.nix index ea4f37e..24e404c 100644 --- a/modules/packages.nix +++ b/modules/packages.nix @@ -24,6 +24,7 @@ # languages gcc13 clang + universal-ctags rustc cargo go diff --git a/users/gandalf/modules/gui/programs/alacritty.nix b/users/gandalf/modules/gui/programs/alacritty.nix index 165fcb4..7df6d76 100644 --- a/users/gandalf/modules/gui/programs/alacritty.nix +++ b/users/gandalf/modules/gui/programs/alacritty.nix @@ -1,6 +1,31 @@ { pkgs, lib, ... }: let common = (import ../common.nix) { pkgs = pkgs; lib = lib; }; + alabaster-theme-patch = builtins.toFile "alabaster.patch" '' + diff --git a/alabaster.toml b/alabaster.toml + index df312d3..f5e5499 100644 + --- a/alabaster.toml + +++ b/alabaster.toml + @@ -2,11 +2,11 @@ + # author tonsky + + [colors.primary] + -background = '#F7F7F7' + +background = '#FFFFFF' + foreground = '#434343' + + [colors.cursor] + -text = '#F7F7F7' + +text = '#FFFFFF' + cursor = '#434343' + + [colors.normal] + ''; + alacritty-theme-patched = pkgs.alacritty-theme.overrideAttrs (final: previous: { + patches = [ + alabaster-theme-patch + ]; + }); in { programs.alacritty = { @@ -9,8 +34,7 @@ in import = [ # Available themes: # https://github.com/alacritty/alacritty-theme - - "${pkgs.alacritty-theme}/alabaster.toml" + "${alacritty-theme-patched}/alabaster.toml" ]; env.TERM = "xterm-256color"; font = { diff --git a/users/gandalf/modules/neovim/default.nix b/users/gandalf/modules/neovim/default.nix index dd2bbc9..d602e29 100644 --- a/users/gandalf/modules/neovim/default.nix +++ b/users/gandalf/modules/neovim/default.nix @@ -1,9 +1,11 @@ { ... }: { + /* xdg.configFile."nvim" = { source = ./config; recursive = true; }; + */ programs.neovim = { enable = true;