mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
services: network-manager: Add missing shadowing of 'iwd?' field.
* gnu/services/networking.scm (network-manager-shepherd-service): Add missing shadowing of 'iwd?' field by using let* instead of let.
This commit is contained in:
parent
1f36534c7e
commit
3a2200e1ad
1 changed files with 8 additions and 8 deletions
|
@ -1219,14 +1219,14 @@ (define (network-manager-environment config)
|
||||||
(define (network-manager-shepherd-service config)
|
(define (network-manager-shepherd-service config)
|
||||||
(match-record config <network-manager-configuration>
|
(match-record config <network-manager-configuration>
|
||||||
(network-manager shepherd-requirement dns vpn-plugins iwd?)
|
(network-manager shepherd-requirement dns vpn-plugins iwd?)
|
||||||
(let ((iwd? (or iwd? ; TODO: deprecated field, remove later.
|
(let* ((iwd? (or iwd? ; TODO: deprecated field, remove later.
|
||||||
(and shepherd-requirement
|
(and shepherd-requirement
|
||||||
(memq 'iwd shepherd-requirement))))
|
(memq 'iwd shepherd-requirement))))
|
||||||
(conf (plain-file "NetworkManager.conf"
|
(conf (plain-file "NetworkManager.conf"
|
||||||
(string-append
|
(string-append
|
||||||
"[main]\ndns=" dns "\n"
|
"[main]\ndns=" dns "\n"
|
||||||
(if iwd? "[device]\nwifi.backend=iwd\n" ""))))
|
(if iwd? "[device]\nwifi.backend=iwd\n" ""))))
|
||||||
(vpn (vpn-plugin-directory vpn-plugins)))
|
(vpn (vpn-plugin-directory vpn-plugins)))
|
||||||
(list (shepherd-service
|
(list (shepherd-service
|
||||||
(documentation "Run the NetworkManager.")
|
(documentation "Run the NetworkManager.")
|
||||||
(provision '(NetworkManager networking))
|
(provision '(NetworkManager networking))
|
||||||
|
|
Loading…
Reference in a new issue