mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-16 14:01:08 +01:00
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 <khaneliman12@gmail.com>
This commit is contained in:
parent
51870a37a3
commit
78fda50bd6
1 changed files with 3 additions and 3 deletions
|
|
@ -28,9 +28,9 @@ in
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
|
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
|
||||||
home.sessionVariables.GCC_COLORS = lib.mkIf (cfg.colors != { }) (
|
home.sessionVariables = lib.mkIf (cfg.colors != { }) {
|
||||||
lib.concatStringsSep ":" (lib.mapAttrsToList (n: v: "${n}=${v}") cfg.colors)
|
GCC_COLORS = lib.concatStringsSep ":" (lib.mapAttrsToList (n: v: "${n}=${v}") cfg.colors);
|
||||||
);
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue