forked from mirrors/nixpkgs
new option: paths to link to /var/run/current-system/sw
svn path=/nixos/trunk/; revision=9828
This commit is contained in:
parent
9dd7891820
commit
5cd638aad8
|
@ -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];
|
||||
|
|
|
@ -257,7 +257,7 @@ rec {
|
|||
systemPath = pkgs.buildEnv {
|
||||
name = "system-path";
|
||||
paths = systemPathList;
|
||||
pathsToLink = ["/bin" "/sbin" "/man" "/share"];
|
||||
inherit (config.environment) pathsToLink;
|
||||
ignoreCollisions = true;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue