2023-11-04 02:28:27 +01:00
|
|
|
{ lib, config, ... }:
|
2024-04-14 07:57:07 +02:00
|
|
|
let cfg = config.syscfg.net.wlp;
|
2023-11-04 02:28:27 +01:00
|
|
|
in {
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
networking.supplicant = {
|
|
|
|
"${cfg.nif}" = {
|
|
|
|
configFile.path = config.sops.secrets.wifi.path;
|
|
|
|
extraConf = ''
|
|
|
|
network={
|
|
|
|
ssid="test"
|
|
|
|
psk="12345678"
|
|
|
|
}
|
|
|
|
network={
|
|
|
|
ssid="WIFIonICE"
|
|
|
|
}
|
|
|
|
network={
|
|
|
|
ssid="JR-EAST_FREE_Wi-Fi"
|
|
|
|
}
|
|
|
|
network={
|
|
|
|
ssid="JR-WEST_FREE_Wi-Fi"
|
|
|
|
}
|
|
|
|
network={
|
|
|
|
ssid="tabinohotel"
|
|
|
|
psk="tabinohotel"
|
|
|
|
}
|
|
|
|
network={
|
|
|
|
ssid="comforthotel"
|
|
|
|
psk="comforthotel"
|
|
|
|
}
|
|
|
|
network={
|
|
|
|
ssid="sotetsu-hotels"
|
|
|
|
psk="sotetsux"
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|