mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
modules/environment/session-init: add shellInit option to add custom shell code.
This commit is contained in:
parent
c00333ee42
commit
26287f0e32
2 changed files with 13 additions and 0 deletions
1
AUTHORS
1
AUTHORS
|
|
@ -3,3 +3,4 @@ Tobias Happ <tobias.happ@gmx.de>
|
|||
Bruno Bigras <bigras.bruno@gmail.com>
|
||||
Evgeny Kurnevsky <kurnevsky@gmail.com>
|
||||
Zhong Jianxin <azuwis@gmail.com>
|
||||
Shelvacu <nix-on-droid-is-cool@shelvacu.com>
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@ let
|
|||
''}
|
||||
|
||||
${exportAll cfg.sessionVariables}
|
||||
|
||||
${cfg.shellInit}
|
||||
'';
|
||||
};
|
||||
in
|
||||
|
|
@ -61,6 +63,16 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
shellInit = mkOption {
|
||||
default = "";
|
||||
type = types.lines;
|
||||
description = ''
|
||||
Shell script code called during shell initialization
|
||||
|
||||
This is useful to add custom aliases or functions, for example.
|
||||
'';
|
||||
};
|
||||
|
||||
sessionVariables = mkOption {
|
||||
default = { };
|
||||
type = types.attrs;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue