mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
wpa_supplicant service: Depend on interfaces being present
This commit is contained in:
parent
7ddf8460a5
commit
dcae10ebda
1 changed files with 2 additions and 0 deletions
|
@ -125,10 +125,12 @@ in {
|
||||||
# FIXME: start a separate wpa_supplicant instance per interface.
|
# FIXME: start a separate wpa_supplicant instance per interface.
|
||||||
systemd.services.wpa_supplicant = let
|
systemd.services.wpa_supplicant = let
|
||||||
ifaces = cfg.interfaces;
|
ifaces = cfg.interfaces;
|
||||||
|
deviceUnit = interface: [ "sys-subsystem-net-devices-${interface}.device" ];
|
||||||
in {
|
in {
|
||||||
description = "WPA Supplicant";
|
description = "WPA Supplicant";
|
||||||
|
|
||||||
after = [ "network-interfaces.target" ];
|
after = [ "network-interfaces.target" ];
|
||||||
|
requires = lib.concatMap deviceUnit ifaces;
|
||||||
wantedBy = [ "network.target" ];
|
wantedBy = [ "network.target" ];
|
||||||
|
|
||||||
path = [ pkgs.wpa_supplicant ];
|
path = [ pkgs.wpa_supplicant ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue