proper hostapd dependencies
This commit is contained in:
parent
f2a0710bee
commit
d5b6456f40
|
@ -146,10 +146,17 @@ in
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.hostapd ];
|
environment.systemPackages = [ pkgs.hostapd ];
|
||||||
|
|
||||||
jobs.hostapd =
|
systemd.services.hostapd =
|
||||||
{ startOn = "started network-interfaces";
|
{ description = "hostapd wireless AP";
|
||||||
stopOn = "stopping network-interfaces";
|
|
||||||
exec = "${pkgs.hostapd}/bin/hostapd ${configFile}";
|
path = [ pkgs.hostapd ];
|
||||||
|
|
||||||
|
after = [ "${cfg.interface}-cfg.service" "nat.service" "bind.service" "dhcpd.service"];
|
||||||
|
|
||||||
|
serviceConfig =
|
||||||
|
{ ExecStart = "${pkgs.hostapd}/bin/hostapd ${configFile}";
|
||||||
|
Restart = "always";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue