* Move the optional parts of the system path to the appropriate

modules.

svn path=/nixos/branches/modular-nixos/; revision=15791
This commit is contained in:
Eelco Dolstra 2009-05-29 13:15:31 +00:00
parent 0da38f14f5
commit 548fb6a1a5
4 changed files with 14 additions and 13 deletions

View File

@ -173,4 +173,7 @@ in
'' ''
export FONTCONFIG_FILE=/etc/fonts/fonts.conf export FONTCONFIG_FILE=/etc/fonts/fonts.conf
''; '';
environment.systemPackages =
pkgs.lib.optional config.fonts.enableFontDir config.system.build.x11Fonts;
} }

View File

@ -53,4 +53,10 @@ in
LD_LIBRARY_PATH=${config.system.nssModules.path}:$LD_LIBRARY_PATH LD_LIBRARY_PATH=${config.system.nssModules.path}:$LD_LIBRARY_PATH
'' ''
else ""; else "";
# NSS modules need to be in `systemPath' so that (i) the builder
# chroot gets to seem them, and (ii) applications can benefit from
# changes in the list of NSS modules at run-time, without requiring
# a reboot.
environment.systemPackages = [config.system.nssModules.list];
} }

View File

@ -7,7 +7,7 @@ with pkgs.lib;
let let
systemPackages = requiredPackages =
[ config.system.sbin.modprobe # must take precedence over module_init_tools [ config.system.sbin.modprobe # must take precedence over module_init_tools
config.system.sbin.mount # must take precedence over util-linux config.system.sbin.mount # must take precedence over util-linux
config.environment.nix config.environment.nix
@ -58,16 +58,7 @@ let
pkgs.utillinux pkgs.utillinux
pkgs.wirelesstools pkgs.wirelesstools
(import ../../helpers/info-wrapper.nix {inherit (pkgs) bash texinfo writeScriptBin;}) (import ../../helpers/info-wrapper.nix {inherit (pkgs) bash texinfo writeScriptBin;})
] ] ++ config.environment.extraPackages;
++ pkgs.lib.optional config.services.bitlbee.enable pkgs.bitlbee
++ config.environment.extraPackages
++ pkgs.lib.optional config.fonts.enableFontDir config.system.build.x11Fonts
# NSS modules need to be in `systemPath' so that (i) the builder
# chroot gets to seem them, and (ii) applications can benefit from
# changes in the list of NSS modules at run-time, without requiring
# a reboot.
++ config.system.nssModules.list;
options = { options = {
@ -75,7 +66,6 @@ let
environment = { environment = {
systemPackages = mkOption { systemPackages = mkOption {
default = systemPackages;
description = '' description = ''
The set of packages that appear in The set of packages that appear in
/var/run/current-system/sw. These packages are /var/run/current-system/sw. These packages are
@ -135,4 +125,6 @@ in
{ {
require = [options]; require = [options];
environment.systemPackages = requiredPackages;
} }

View File

@ -76,7 +76,7 @@ in
{ {
require = options; require = options;
environment.extraPackages = environment.systemPackages =
[ nixosInstall [ nixosInstall
nixosRebuild nixosRebuild
nixosHardwareScan nixosHardwareScan