I’m finally switching to Nixos, and it’s already so much fun :D! Thanks to anyone involved, for all your tremendous work and amazing ideas!
I tried to find a relevant answer to my problem on the Web and in this Discourse – and my question have popped already several times, sorry… – but I still don’t do things right . So I thought I might finally ask.
I’m always using ethernet at home, but I wanted to try to enable Wifi for outside work. I’m using a Clevo N650DU and my Wifi card is an Intel AC8265:
lspci -nn -s 01:00.0 01:00.0 Network controller : Intel Corporation Wireless 8265 / 8275 [8086:24fd] (rev 78)
Everything went fine with the .iso installation (with
networking.wireless.enable = true;), but when I rebooted and tried to change anything, as long as I kept
true, I was greeted by this error:
warning: the following units failed: wpa_supplicant.service ● wpa_supplicant.service - WPA Supplicant Loaded: loaded (/nix/store/gkwrv6w6p2149g56l6iyfdvpxfvnwfrq-unit-wpa_supplicant.service/wpa_supplicant.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2019-11-20 23:27:44 CET; 202ms ago Process: 5902 ExecStart=/nix/store/61qpml1c251gyslppmyy6hwp2sh3a673-unit-script-wpa_supplicant-start (code=exited, status=255/EXCEPTION) Main PID: 5902 (code=exited, status=255/EXCEPTION) IP: 0B in, 0B out CPU: 11ms nov. 20 23:27:44 nixos systemd: Started WPA Supplicant. nov. 20 23:27:44 nixos wpa_supplicant: Successfully initialized wpa_supplicant nov. 20 23:27:44 nixos wpa_supplicant: Failed to open config file '/etc/wpa_supplicant.conf', error: No such file or directory nov. 20 23:27:44 nixos wpa_supplicant: Failed to read or parse configuration '/etc/wpa_supplicant.conf'. nov. 20 23:27:44 nixos systemd: wpa_supplicant.service: Main process exited, code=exited, status=255/EXCEPTION nov. 20 23:27:44 nixos systemd: wpa_supplicant.service: Failed with result 'exit-code'. warning: error(s) occurred while switching to the new configuration
Following other threads on this Discourse, I tried to reboot on the .iso, without being connected via ethernet, stopped
NetworkManager and tried to use
wpa_supplicant to connect to my Wifi but here is what I got:
wpa_supplicant -B -i wlp1s0 -c <(wpa_passphrase '<mySSID>' '<myPassword>') Successfully initialized wpa_supplicant Failed to open config file '/dev/fd/63', error: No such file or directory Failed to read or parse configuration '/dev/fd/63'.
I hope everything is clear and that I provided enough informations.
Thanks in advance and all the best,