mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
network: update network list
This commit is contained in:
parent
c7e5e65062
commit
83081607ea
2 changed files with 12 additions and 8 deletions
|
|
@ -85,6 +85,10 @@ in
|
|||
ssid = "R802";
|
||||
randomizeMac = true;
|
||||
}
|
||||
{
|
||||
ssid = "R1108";
|
||||
randomizeMac = true;
|
||||
}
|
||||
|
||||
{ ssid = "_SNCF_WIFI_INOUI"; }
|
||||
{ ssid = "_WIFI_LYRIA"; }
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ let
|
|||
hasPassword ? false,
|
||||
scanOnLowSignal ? false,
|
||||
randomizeMac ? false,
|
||||
# TODO: adapt to the 25.11 interface
|
||||
bssid ? null,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
|
@ -24,20 +26,18 @@ let
|
|||
"hasPassword"
|
||||
"scanOnLowSignal"
|
||||
"randomizeMac"
|
||||
"bssid"
|
||||
])
|
||||
(lib.optionalAttrs hasPassword {
|
||||
pskRaw = "ext:${escapePwdKey ssid}";
|
||||
})
|
||||
(lib.optionalAttrs scanOnLowSignal {
|
||||
{
|
||||
extraConfig = ''
|
||||
bgscan="simple:30:-70:3600"
|
||||
${lib.optionalString scanOnLowSignal "bgscan=\"simple:30:-70:3600\""}
|
||||
${lib.optionalString randomizeMac "mac_addr=1"}
|
||||
${lib.optionalString (bssid != null) "bssid=\"${bssid}\""}
|
||||
'';
|
||||
})
|
||||
(lib.optionalAttrs randomizeMac {
|
||||
extraConfig = ''
|
||||
mac_addr=1
|
||||
'';
|
||||
})
|
||||
}
|
||||
];
|
||||
};
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue