* 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:
parent
0da38f14f5
commit
548fb6a1a5
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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];
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ in
|
|||||||
{
|
{
|
||||||
require = options;
|
require = options;
|
||||||
|
|
||||||
environment.extraPackages =
|
environment.systemPackages =
|
||||||
[ nixosInstall
|
[ nixosInstall
|
||||||
nixosRebuild
|
nixosRebuild
|
||||||
nixosHardwareScan
|
nixosHardwareScan
|
||||||
|
Loading…
x
Reference in New Issue
Block a user