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 = {
|
environment = {
|
||||||
|
|
||||||
|
pathsToLink = mkOption {
|
||||||
|
default = ["/bin" "/sbin" "/share"];
|
||||||
|
example = ["/"];
|
||||||
|
description = "
|
||||||
|
This allows to symlink more directories in /var/run/current-system/sw
|
||||||
|
";
|
||||||
|
};
|
||||||
|
|
||||||
extraPackages = mkOption {
|
extraPackages = mkOption {
|
||||||
default = pkgs: [];
|
default = pkgs: [];
|
||||||
example = pkgs: [pkgs.firefox pkgs.thunderbird];
|
example = pkgs: [pkgs.firefox pkgs.thunderbird];
|
||||||
|
@ -257,7 +257,7 @@ rec {
|
|||||||
systemPath = pkgs.buildEnv {
|
systemPath = pkgs.buildEnv {
|
||||||
name = "system-path";
|
name = "system-path";
|
||||||
paths = systemPathList;
|
paths = systemPathList;
|
||||||
pathsToLink = ["/bin" "/sbin" "/man" "/share"];
|
inherit (config.environment) pathsToLink;
|
||||||
ignoreCollisions = true;
|
ignoreCollisions = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user