baseSystem: Fix issue with wifiInterface

This commit is contained in:
PapaTutuWawa committed 2021-11-04 18:10:19 +01:00
1 parent e9de019d8d
commit b561f69e70
1 file changed
+2 -1
+2 -1
View File
@@ -4,7 +4,8 @@ let
network = import ./network.nix;
isVM = config.ptw.system.isVM;
wireless = config.ptw.system.wireless;
wifiInterface = config.ptw.system.wifi.wifiInterface;
hasWifiInterface = wireless && lib.hasAttr "wifi" config.ptw.system && lib.hasAttr "wifiInterface" config.ptw.system.wifi;
wifiInterface = if hasWifiInterface then config.ptw.system.wifi.wifiInterface else "";
primaryInterface = config.ptw.system.primaryInterface;
primaryInterfaceWrapper = if wifiInterface != "" && primaryInterface == "" then wifiInterface else primaryInterface;
in {