summaryrefslogtreecommitdiff
path: root/modules/environment
diff options
context:
space:
mode:
Diffstat (limited to 'modules/environment')
-rw-r--r--modules/environment/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/environment/default.nix b/modules/environment/default.nix
index 3089362..a6fcf26 100644
--- a/modules/environment/default.nix
+++ b/modules/environment/default.nix
@@ -105,6 +105,26 @@ in {
'';
};
+ environment.shellInit = mkOption {
+ default = "";
+ description = ''
+ Shell script code called during shell initialisation.
+ This code is asumed to be shell-independent, which means you should
+ stick to pure sh without sh word split.
+ '';
+ type = types.lines;
+ };
+
+ environment.loginShellInit = mkOption {
+ default = "";
+ description = ''
+ Shell script code called during login shell initialisation.
+ This code is asumed to be shell-independent, which means you should
+ stick to pure sh without sh word split.
+ '';
+ type = types.lines;
+ };
+
environment.interactiveShellInit = mkOption {
default = "";
description = ''