new option: paths to link to /var/run/current-system/sw

svn path=/nixos/trunk/; revision=9828
This commit is contained in:
Yury G. Kudryashov 2007-12-01 20:44:27 +00:00
parent 9dd7891820
commit 5cd638aad8
2 changed files with 9 additions and 1 deletions

View file

@ -1578,6 +1578,14 @@ root ALL=(ALL) SETENV: ALL
environment = {
pathsToLink = mkOption {
default = ["/bin" "/sbin" "/share"];
example = ["/"];
description = "
This allows to symlink more directories in /var/run/current-system/sw
";
};
extraPackages = mkOption {
default = pkgs: [];
example = pkgs: [pkgs.firefox pkgs.thunderbird];

View file

@ -257,7 +257,7 @@ rec {
systemPath = pkgs.buildEnv {
name = "system-path";
paths = systemPathList;
pathsToLink = ["/bin" "/sbin" "/man" "/share"];
inherit (config.environment) pathsToLink;
ignoreCollisions = true;
};