Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions modules/devshell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,23 @@ let
eval = mkOption {
type = types.nullOr types.str;
default = null;
description = "Like value but not escaped";
description = ''
Like value but not evaluated by Bash. This allows to inject other
variable names or even commands using the `$()` notation.
'';
example = "$OTHER_VAR";
};

prefix = mkOption {
type = types.nullOr types.str;
default = null;
description = "prepend to PATH-like environment variables";
description = ''
Prepend to PATH-like environment variables.

For example name = "PATH"; prefix = "bin"; will expand the path of
./bin and prepend it to the PATH, separated by ':'.
'';
example = "bin";
};
};

Expand Down