From 490250c166c4647c2bab390dc7f26d2f7032e0a4 Mon Sep 17 00:00:00 2001 From: isabel Date: Tue, 31 Dec 2024 10:17:51 +0000 Subject: [PATCH] refactor(home-manager/alacritty): remove importTOML we can use the `import` setting within alacritty to import the file with the least presidence, this is beacuse anything within the `alacritty.toml` file has greater precedence and other files imported will be loaded after the imported catppuccin theme beacuse of the `lib.mkBefore`. For futher reading consult https://alacritty.org/config-alacritty.html#s1 --- modules/home-manager/alacritty.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/home-manager/alacritty.nix b/modules/home-manager/alacritty.nix index c2d400b4..299e99a9 100644 --- a/modules/home-manager/alacritty.nix +++ b/modules/home-manager/alacritty.nix @@ -20,7 +20,7 @@ in config = lib.mkIf cfg.enable { programs.alacritty = { - settings = lib.importTOML "${sources.alacritty}/catppuccin-${cfg.flavor}.toml"; + settings.general.import = lib.mkBefore [ "${sources.alacritty}/catppuccin-${cfg.flavor}.toml" ]; }; }; }