MyNixOS website logo
option

programs.nushell.environmentVariables

Environment variables to be set.

Inline values can be set with lib.hm.nushell.mkNushellInline.

Declarations
Type
attribute set of (null or (Nushell inline value) or boolean or signed integer or floating point number or string or path or (attribute set of Nushell values) or (list of Nushell values))
Default
{ }
Example
{
  FOO = "BAR";
  LIST_VALUE = [ "foo" "bar" ];
  NU_LIB_DIRS = lib.concatStringsSep ":" [ ./scripts ];
  PROMPT_COMMAND = lib.hm.nushell.mkNushellInline ''{|| "> "}'';
  ENV_CONVERSIONS.PATH = {
    from_string = lib.hm.nushell.mkNushellInline "{|s| $s | split row (char esep) }";
    to_string = lib.hm.nushell.mkNushellInline "{|v| $v | str join (char esep) }";
  };
}