containers: fix interfaces option bugs

The default should be [], no need to check it for INTERFACES
variable.

Changed files
+1 -3
nixos
modules
virtualisation
+1 -3
nixos/modules/virtualisation/containers.nix
···
interfaces = mkOption {
type = types.listOf types.string;
-
default = null;
+
default = [];
example = [ "eth1" "eth2" ];
description = ''
The list of interfaces to be moved into the container.
···
LOCAL_ADDRESS=${cfg.localAddress}
''}
''}
-
${optionalString (cfg.interfaces != null) ''
INTERFACES="${toString cfg.interfaces}"
-
''}
${optionalString cfg.autoStart ''
AUTO_START=1
''}