bash: use attrsOf instead of attrs
This commit is contained in:
parent
e85804efa2
commit
b690a8be2f
|
@ -72,7 +72,7 @@ in
|
||||||
|
|
||||||
sessionVariables = mkOption {
|
sessionVariables = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
type = types.attrs;
|
type = with types; attrsOf (either int str);
|
||||||
example = { MAILCHECK = 30; };
|
example = { MAILCHECK = 30; };
|
||||||
description = ''
|
description = ''
|
||||||
Environment variables that will be set for the Bash session.
|
Environment variables that will be set for the Bash session.
|
||||||
|
@ -81,12 +81,12 @@ in
|
||||||
|
|
||||||
shellAliases = mkOption {
|
shellAliases = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
|
type = types.attrsOf types.str;
|
||||||
example = { ll = "ls -l"; ".." = "cd .."; };
|
example = { ll = "ls -l"; ".." = "cd .."; };
|
||||||
description = ''
|
description = ''
|
||||||
An attribute set that maps aliases (the top level attribute names in
|
An attribute set that maps aliases (the top level attribute names in
|
||||||
this option) to command strings or directly to build outputs.
|
this option) to command strings or directly to build outputs.
|
||||||
'';
|
'';
|
||||||
type = types.attrs;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enableAutojump = mkOption {
|
enableAutojump = mkOption {
|
||||||
|
|
Loading…
Reference in a new issue