19 lines
558 B
Nix
19 lines
558 B
Nix
{ pkgs, ... }: let interface = "wlp170s0"; in {
|
|
boot.initrd = {
|
|
systemd = {
|
|
enable = true;
|
|
|
|
packages = [ pkgs.wpa_supplicant ];
|
|
initrdBin = [ pkgs.wpa_supplicant ];
|
|
targets.initrd.wants = [ "wpa_supplicant@${interface}.service" ];
|
|
|
|
# prevent WPA supplicant from requiring `sysinit.target`.
|
|
services."wpa_supplicant@".unitConfig.DefaultDependencies = false;
|
|
|
|
network.enable = true;
|
|
network.networks."FBI Van#2.4" = {
|
|
matchConfig.Name = interface;
|
|
networkConfig.DHCP = "yes";
|
|
};
|
|
};
|
|
}
|