nixos/test-instrumentation: fix unsetting of defaultGateway
The empty string is coerced to an attrset: { address = ""; interface = null; metric = null; } The new defaultGateway logic (correctly) complains that interface must be defined when using networkd. We instead clear defaultGateway by setting it to its actual default value, which is null.
This commit is contained in:
parent
679733b3ad
commit
088da23f9e
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ in
|
|||
boot.consoleLogLevel = 7;
|
||||
|
||||
# Prevent tests from accessing the Internet.
|
||||
networking.defaultGateway = mkOverride 150 "";
|
||||
networking.defaultGateway = mkOverride 150 null;
|
||||
networking.nameservers = mkOverride 150 [ ];
|
||||
|
||||
system.requiredKernelConfig = with config.lib.kernelConfig; [
|
||||
|
|
Loading…
Reference in a new issue