From fab309069328e238a4050cd52c176e6349b06d44 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 22 Jul 2015 12:51:21 +0200 Subject: [PATCH] Don't include wireless tools in containers --- nixos/modules/tasks/network-interfaces.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix index 6361ed2cc43..a967fc77e68 100644 --- a/nixos/modules/tasks/network-interfaces.nix +++ b/nixos/modules/tasks/network-interfaces.nix @@ -708,11 +708,14 @@ in pkgs.iproute pkgs.iputils pkgs.nettools - pkgs.wirelesstools + pkgs.openresolv + ] + ++ optionals (!config.boot.isContainer) [ + pkgs.wirelesstools # FIXME: obsolete? pkgs.iw pkgs.rfkill - pkgs.openresolv - ] ++ bridgeStp; + ] + ++ bridgeStp; systemd.targets."network-interfaces" = { description = "All Network Interfaces";