From ae80c3e7bcf0110b4976eab3435838c7e55bfc9d Mon Sep 17 00:00:00 2001 From: Boris Sukholitko Date: Wed, 26 Aug 2015 22:11:12 +0300 Subject: [PATCH] containers: fix interfaces option bugs The default should be [], no need to check it for INTERFACES variable. --- nixos/modules/virtualisation/containers.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nixos/modules/virtualisation/containers.nix b/nixos/modules/virtualisation/containers.nix index d819d99e09c..59f486ff78b 100644 --- a/nixos/modules/virtualisation/containers.nix +++ b/nixos/modules/virtualisation/containers.nix @@ -122,7 +122,7 @@ in interfaces = mkOption { type = types.listOf types.string; - default = null; + default = []; example = [ "eth1" "eth2" ]; description = '' The list of interfaces to be moved into the container. @@ -344,9 +344,7 @@ in LOCAL_ADDRESS=${cfg.localAddress} ''} ''} - ${optionalString (cfg.interfaces != null) '' INTERFACES="${toString cfg.interfaces}" - ''} ${optionalString cfg.autoStart '' AUTO_START=1 ''}