From 3c84d56273ff6a5eb07d83448a3b046cb6c5ebc7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 28 May 2009 13:17:56 +0000 Subject: * Move the /etc generation to modules/system/etc. svn path=/nixos/branches/modular-nixos/; revision=15767 --- modules/programs/bash/bash.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'modules/programs') 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 -- cgit 1.4.1