From 51870a37a354a37dc3bd32f3a5a7c9054249492d Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sun, 21 Sep 2025 23:14:45 -0500 Subject: [PATCH] grep: fix sessionVariables mkIf evaluation error error: The option `home.sessionVariables.GREP_COLORS' was accessed but has no value defined. Try setting the option. Signed-off-by: Austin Horstman --- modules/programs/grep.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/programs/grep.nix b/modules/programs/grep.nix index 2175fad69..efe0e05f6 100644 --- a/modules/programs/grep.nix +++ b/modules/programs/grep.nix @@ -29,9 +29,9 @@ in config = lib.mkIf cfg.enable { home.packages = lib.mkIf (cfg.package != null) [ cfg.package ]; - home.sessionVariables.GREP_COLORS = lib.mkIf (cfg.colors != { }) ( - lib.concatStringsSep ":" (lib.mapAttrsToList (n: v: "${n}=${v}") cfg.colors) - ); + home.sessionVariables = lib.mkIf (cfg.colors != { }) { + GREP_COLORS = lib.concatStringsSep ":" (lib.mapAttrsToList (n: v: "${n}=${v}") cfg.colors); + }; }; }