mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
nixos/networkd: Fix eval error for defaultGateway
Regression introduced by 0cb487ee04
.
This changed the result for defaultGateway to be a submodule instead of
just a plain string, so instead of using just cfg.defaultGateway we need
to pass cfg.defaultGateway.address now.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @abbradar
This commit is contained in:
parent
9611a60708
commit
87cc20eddb
@ -62,9 +62,9 @@ in
|
|||||||
genericNetwork = override: {
|
genericNetwork = override: {
|
||||||
DHCP = override (dhcpStr cfg.useDHCP);
|
DHCP = override (dhcpStr cfg.useDHCP);
|
||||||
} // optionalAttrs (cfg.defaultGateway != null) {
|
} // optionalAttrs (cfg.defaultGateway != null) {
|
||||||
gateway = override [ cfg.defaultGateway ];
|
gateway = override [ cfg.defaultGateway.address ];
|
||||||
} // optionalAttrs (cfg.defaultGateway6 != null) {
|
} // optionalAttrs (cfg.defaultGateway6 != null) {
|
||||||
gateway = override [ cfg.defaultGateway6 ];
|
gateway = override [ cfg.defaultGateway6.address ];
|
||||||
} // optionalAttrs (domains != [ ]) {
|
} // optionalAttrs (domains != [ ]) {
|
||||||
domains = override domains;
|
domains = override domains;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user