Following the NixOS Manual, I i) made a live USB drive, and ii) installed NixOS on my system.
Now I'm trying to set up my wireless network, and "Wireless Networks" instructions aren't working for my install. What did I need to do during the install, or after install, to get this working?
Specifically, I don't have
systemctl restart wpa_supplicant.service Failed to restart wpa_supplicant.service: Unit wpa_supplicant.service not found.
When I just try to run
systemctl restart NetworkingService, I get a similar error.
systemctl restart NetworkingService Failed to restart NetworkingService: Unit NetworkingService not found.
I should mention that I configured
networking.wireless.enable = true (in
/etc/nixos/configuration.nix). In my case, rerunning
nixos-rebuild switch doesn't work because it can't download packages from the internet.
$ nixos-rebuild switch building Nix... building the system configuration... warning: unable to download 'https://cache.nixos.org/nix-cache-info': Couldn't resolve host name (6); retrying in 348 ms warning: unable to download 'https://cache.nixos.org/nix-cache-info': Couldn't resolve host name (6); retrying in 619 ms ... cannot build derivation '/nix/store/...-wpa_supplicant.service.drv': 1 dependencies couldn't be built cannot build derivation '/nix/store/...-nixos-system-
So it looks like I have a chicken and egg problem. I don't have networking, that would allow me to setup networking. I would have imagined that that wpa supplicant package would have been included in the base installation.
Clearly I'm missing something.