From 78fda50bd6e1f26ae914ae77d66e6d2381b64507 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sun, 5 Oct 2025 14:34:05 -0500 Subject: [PATCH] gcc: fix sessionVariables mkIf evaluation error error: The option `home.sessionVariables.GCC_COLORS' was accessed but has no value defined. Try setting the option. Signed-off-by: Austin Horstman --- modules/programs/gcc.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/programs/gcc.nix b/modules/programs/gcc.nix index 6faed11b5..2eff58d5d 100644 --- a/modules/programs/gcc.nix +++ b/modules/programs/gcc.nix @@ -28,9 +28,9 @@ in config = lib.mkIf cfg.enable { home.packages = lib.mkIf (cfg.package != null) [ cfg.package ]; - home.sessionVariables.GCC_COLORS = lib.mkIf (cfg.colors != { }) ( - lib.concatStringsSep ":" (lib.mapAttrsToList (n: v: "${n}=${v}") cfg.colors) - ); + home.sessionVariables = lib.mkIf (cfg.colors != { }) { + GCC_COLORS = lib.concatStringsSep ":" (lib.mapAttrsToList (n: v: "${n}=${v}") cfg.colors); + }; }; }