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); + }; }; }