Don't include wireless-tools/iw/rfkill when wireless is disabled

This is mostly to get rid of some useless stuff in VMs/containers.
This commit is contained in:
Eelco Dolstra 2016-02-01 17:51:10 +01:00
parent 5184aaa1ea
commit b21ef9c9e6

View file

@ -927,7 +927,7 @@ in
pkgs.nettools
pkgs.openresolv
]
++ optionals (!config.boot.isContainer) [
++ optionals config.networking.wireless.enable [
pkgs.wirelesstools # FIXME: obsolete?
pkgs.iw
pkgs.rfkill