summary refs log tree commit diff
path: root/modules/programs
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2009-05-28 13:17:56 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-05-28 13:17:56 +0000
commit3c84d56273ff6a5eb07d83448a3b046cb6c5ebc7 (patch)
tree4ed77f7bab5772a0b423f87d855d02bce869b17f /modules/programs
parent14f1c81822d3eb855ea47abf9d53bc4b06659385 (diff)
downloadnixpkgs-3c84d56273ff6a5eb07d83448a3b046cb6c5ebc7.tar
nixpkgs-3c84d56273ff6a5eb07d83448a3b046cb6c5ebc7.tar.gz
nixpkgs-3c84d56273ff6a5eb07d83448a3b046cb6c5ebc7.tar.bz2
nixpkgs-3c84d56273ff6a5eb07d83448a3b046cb6c5ebc7.tar.lz
nixpkgs-3c84d56273ff6a5eb07d83448a3b046cb6c5ebc7.tar.xz
nixpkgs-3c84d56273ff6a5eb07d83448a3b046cb6c5ebc7.tar.zst
nixpkgs-3c84d56273ff6a5eb07d83448a3b046cb6c5ebc7.zip
* Move the /etc generation to modules/system/etc.
svn path=/nixos/branches/modular-nixos/; revision=15767
Diffstat (limited to 'modules/programs')
-rw-r--r--modules/programs/bash/bash.nix19
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