* Move the /etc generation to modules/system/etc.

svn path=/nixos/branches/modular-nixos/; revision=15767
This commit is contained in:
Eelco Dolstra
2009-05-28 13:17:56 +00:00
parent 14f1c81822
commit 3c84d56273
6 changed files with 35 additions and 41 deletions

View File

@@ -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