services: network-manager: Add 'configuration' action.

* gnu/services/networking.scm (network-manager-shepherd-service): Add
'actions' field.
This commit is contained in:
Ludovic Courtès 2023-03-27 09:43:01 +02:00
parent 384856c9fb
commit 82607c442b
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013-2022 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2013-2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2016, 2018, 2020 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2016, 2018, 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 John Darrington <jmd@gnu.org> ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
@ -1235,6 +1235,7 @@ (define (network-manager-shepherd-service config)
;; TODO: iwd? is deprecated and should be passed ;; TODO: iwd? is deprecated and should be passed
;; with shepherd-requirement, remove later. ;; with shepherd-requirement, remove later.
,@(if iwd? '(iwd) '()))) ,@(if iwd? '(iwd) '())))
(actions (list (shepherd-configuration-action conf)))
(start (start
#~(lambda _ #~(lambda _
(let ((pid (let ((pid