39 lines
851 B
Nix
39 lines
851 B
Nix
{ lib, config, ... }:
|
|
let cfg = config.hostcfg.net.wlp;
|
|
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"
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|