diff options
author | Boris Sukholitko <boriss@gmail.com> | 2015-08-26 22:11:12 +0300 |
---|---|---|
committer | Boris Sukholitko <boriss@gmail.com> | 2015-08-26 22:11:12 +0300 |
commit | ae80c3e7bcf0110b4976eab3435838c7e55bfc9d (patch) | |
tree | 89ec9829c27fa43dab0c227dc6a147c674b2393d /nixos/modules/virtualisation | |
parent | 8c2f7fcfeda241e891b6913166ab0c7f2caab5fa (diff) |
containers: fix interfaces option bugs
The default should be [], no need to check it for INTERFACES variable.
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/containers.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/modules/virtualisation/containers.nix b/nixos/modules/virtualisation/containers.nix index d819d99e09cad..59f486ff78b75 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 ''} |