forked from mirrors/nixpkgs
Merge pull request #54681 from Ma27/escape-interface-names-in-wpa-supplicant-unit
nixos/wpa_supplicant: escape interface names to listen on
This commit is contained in:
commit
dede5baac7
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, pkgs, utils, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
|
@ -193,7 +193,7 @@ in {
|
|||
# FIXME: start a separate wpa_supplicant instance per interface.
|
||||
systemd.services.wpa_supplicant = let
|
||||
ifaces = cfg.interfaces;
|
||||
deviceUnit = interface: [ "sys-subsystem-net-devices-${interface}.device" ];
|
||||
deviceUnit = interface: [ "sys-subsystem-net-devices-${utils.escapeSystemdPath interface}.device" ];
|
||||
in {
|
||||
description = "WPA Supplicant";
|
||||
|
||||
|
|
Loading…
Reference in a new issue