diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2016-12-15 13:26:22 +0100 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2016-12-15 13:26:22 +0100 |
| commit | 125dcb48b02819f84e8393e3a901906d164e89bc (patch) | |
| tree | df308225c54b542287742a94b09a58337bb07506 /modules/environment | |
| parent | 584e64da1a78fb92b36207bf397f1131262e4097 (diff) | |
add nix module
Diffstat (limited to 'modules/environment')
| -rw-r--r-- | modules/environment/default.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/environment/default.nix b/modules/environment/default.nix index 37cd652..3d34986 100644 --- a/modules/environment/default.nix +++ b/modules/environment/default.nix @@ -48,7 +48,7 @@ in { }; environment.variables = mkOption { - type = types.attrsOf (types.loeOf types.str); + type = types.attrsOf (types.either types.str (types.listOf types.str)); default = {}; description = '' A set of environment variables used in the global environment. @@ -71,6 +71,17 @@ in { ''; }; + environment.extraInit = mkOption { + type = types.lines; + default = ""; + description = '' + Shell script code called during global environment initialisation + after all variables and profileVariables have been set. + This code is asumed to be shell-independent, which means you should + stick to pure sh without sh word split. + ''; + }; + }; config = { |
