1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-02-19 17:39:34 +00:00

* 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
'';
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
''
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
systemPackages =
requiredPackages =
[ config.system.sbin.modprobe # must take precedence over module_init_tools
config.system.sbin.mount # must take precedence over util-linux
config.environment.nix
@ -58,16 +58,7 @@ let
pkgs.utillinux
pkgs.wirelesstools
(import ../../helpers/info-wrapper.nix {inherit (pkgs) bash texinfo writeScriptBin;})
]
++ 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;
] ++ config.environment.extraPackages;
options = {
@ -75,7 +66,6 @@ let
environment = {
systemPackages = mkOption {
default = systemPackages;
description = ''
The set of packages that appear in
/var/run/current-system/sw. These packages are
@ -135,4 +125,6 @@ in
{
require = [options];
environment.systemPackages = requiredPackages;
}

View file

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