mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-15 14:09:17 +03:00
containers: fix interfaces option bugs
The default should be [], no need to check it for INTERFACES variable.
This commit is contained in:
parent
8c2f7fcfed
commit
ae80c3e7bc
1 changed files with 1 additions and 3 deletions
|
@ -122,7 +122,7 @@ in
|
||||||
|
|
||||||
interfaces = mkOption {
|
interfaces = mkOption {
|
||||||
type = types.listOf types.string;
|
type = types.listOf types.string;
|
||||||
default = null;
|
default = [];
|
||||||
example = [ "eth1" "eth2" ];
|
example = [ "eth1" "eth2" ];
|
||||||
description = ''
|
description = ''
|
||||||
The list of interfaces to be moved into the container.
|
The list of interfaces to be moved into the container.
|
||||||
|
@ -344,9 +344,7 @@ in
|
||||||
LOCAL_ADDRESS=${cfg.localAddress}
|
LOCAL_ADDRESS=${cfg.localAddress}
|
||||||
''}
|
''}
|
||||||
''}
|
''}
|
||||||
${optionalString (cfg.interfaces != null) ''
|
|
||||||
INTERFACES="${toString cfg.interfaces}"
|
INTERFACES="${toString cfg.interfaces}"
|
||||||
''}
|
|
||||||
${optionalString cfg.autoStart ''
|
${optionalString cfg.autoStart ''
|
||||||
AUTO_START=1
|
AUTO_START=1
|
||||||
''}
|
''}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue