diff options
Diffstat (limited to 'modules/programs')
-rw-r--r-- | modules/programs/bash/bash.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/programs/bash/bash.nix b/modules/programs/bash/bash.nix index d992d0888ba..205cadea7f3 100644 --- a/modules/programs/bash/bash.nix +++ b/modules/programs/bash/bash.nix @@ -3,7 +3,26 @@ {config, pkgs, ...}: +let + + options = { + + environment.shellInit = pkgs.lib.mkOption { + default = ""; + example = ''export PATH=/godi/bin/:$PATH''; + description = " + Script used to initialized user shell environments. + "; + merge = pkgs.lib.mergeStringOption; + }; + + }; + +in + { + require = [options]; + environment.etc = [ { # /etc/bashrc: script executed when the shell starts as a # non-login shell. /etc/profile also sources this file, so |