From patchwork Sat May 24 13:01:32 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Trofimov X-Patchwork-Id: 42897 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A88C627BC4C; Sat, 24 May 2025 14:03:31 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9CE6A27BC49 for ; Sat, 24 May 2025 14:03:30 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uIoWp-0005pi-Af; Sat, 24 May 2025 09:03:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uIoWn-0005oq-4P for guix-patches@gnu.org; Sat, 24 May 2025 09:03:05 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uIoWm-0005F8-Kd; Sat, 24 May 2025 09:03:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=GC00tEGbPfC7O13DM+4b3y+0C25XfAD6Ts6iaMwEZI8=; b=YmGfxrc76KGgwiT01u8z1fCJKpS3Q8xnY0QxPC7xxvNEFdWjnYLAk47m3Kh6ZTLPVCBhqSoATNaFBPuFwoz1lmYMCKqiwv63QD4hTaBV0iiKeeLOUz7DTlQThGGm4G+3ryfq+rtrgoIhOa1DV0CE6jupCppoYCi7unAdechpedBThPwRhexpJunhFpd+X3dTfOcsXnnOqXfWsdywxFEDG0JEgWNWg0dWGyxr2zOynAjWpBaV2XbqowDCjF4pML4c5y1gRdoYB+RrL4eSvKCZlF1C1uUHxtnD1NDx/dbJQtji4weU2nCQ8y0b6ODSsLGwSWWqxFJMF1WmXaVeauPpfw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1uIoWl-0004qc-Dw; Sat, 24 May 2025 09:03:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78546] [PATCH v2 5/5] services: networking: Add iwd-service-type. Resent-From: Sergey Trofimov Original-Sender: "Debbugs-submit" Resent-CC: sarg@sarg.org.ru, ludo@gnu.org, gabriel@erlikon.ch, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Sat, 24 May 2025 13:03:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78546 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78546@debbugs.gnu.org Cc: Sergey Trofimov , Sergey Trofimov , Ludovic =?utf-8?q?Court=C3=A8s?= , Gabriel Wicki , Maxim Cournoyer X-Debbugs-Original-Xcc: Sergey Trofimov , Ludovic =?utf-8?q?Court=C3=A8s?= , Gabriel Wicki , Maxim Cournoyer Received: via spool by 78546-submit@debbugs.gnu.org id=B78546.174809172718441 (code B ref 78546); Sat, 24 May 2025 13:03:03 +0000 Received: (at 78546) by debbugs.gnu.org; 24 May 2025 13:02:07 +0000 Received: from localhost ([127.0.0.1]:58891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uIoVq-0004nF-36 for submit@debbugs.gnu.org; Sat, 24 May 2025 09:02:07 -0400 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]:42337) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uIoVm-0004lb-Gw for 78546@debbugs.gnu.org; Sat, 24 May 2025 09:02:03 -0400 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-602c4eae8d5so1411184a12.1 for <78546@debbugs.gnu.org>; Sat, 24 May 2025 06:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sarg.org.ru; s=google; t=1748091716; x=1748696516; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GC00tEGbPfC7O13DM+4b3y+0C25XfAD6Ts6iaMwEZI8=; b=q8cu5nuqH2UbZBOYH1Is+VhQsP/Y4rxVXp6+tliQGuDO+RaYXnvWA26Ml9+92994Nz /CI0gNsicpapwncN2gKapJXfZfLFP0+7e3coCqZ3JV4ZWHakdNqXcmBOulhmwjArYTJR 97TEAxGy6zZiq+qi+9puZ4BilVHIs4ELZt7rV4nNiHEtmpMLsVBTiL9Ok5T01fOy0n8r 3HA+jxzc0oDEJHHTNUDlx2yRYS+pTS6h0Uh13O+LX88BfP8jU+KM+7A7yWhub5/CrOzK /xb1OWcyOGrUTu49KMSWKKvemMoJsIusTylZEt12KVWXC71GqaU12e/6betIy/O0jBmR O0NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748091716; x=1748696516; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GC00tEGbPfC7O13DM+4b3y+0C25XfAD6Ts6iaMwEZI8=; b=OgV9xV+u9i0Hx+XSDrPVGmz4J/j/Y84OrQtxBSEATRWXXTyTzX/LdSTq7NNJaNwIai PObkfWVNZBqiHuvJfwelP+S0JBw4y8l3g61vk0xw/CDUO0F21pRS/d1B+WNlitn49TfB I8hZOg2ELE10dpupMcsBSXYAm6hoyRJKKw4+liuApBhYwEz7nPtzb2aQj4gmIOrfQ/04 M5AhZOpgPZ+51dX0USeSUkIZSnOCejR6vJUGHz1G3HYZ2Xs+GUU+Y7ANk60zLwNF2sCw oTcdxU+LTzFtHMEm2qrYzKOUjm2WGbcByyR5JRo9WmpxBogrMSPOvwGdBq9O777EQLm8 dR+w== X-Gm-Message-State: AOJu0YwLhusIcQLE8F4q4DjFwDeeYK+fXubGXKnfbfA8bdDczPHUq3u+ 4KMpsGbt35HQaI7toQfwUIkBnNTHKGJbMnk532trVGiwKBCWcOCNiMwsiehjuCpym7inEJ2Shju Kltnsgn2jYw== X-Gm-Gg: ASbGncsQLeZa+lvHLtBGU/kb88iyTUAZyju3mHrxEkej+xtGwAhWr9CmP9LIk3XbwRb g+Y5l6JkjTYT+ozIG8k7WZ/+9HLi3ITD0WMikzMmJT92tHQU74Bio6+284ZJVsfAVTA4XhmxCU8 6hzd2Qu45yV694/ag1LiCmJEjkgS7nA2y8H0pD8UM3rj8UeIBdX1SqHhoa7Rw2SSTYxzm+zSQrb hHF6wFoJTkSPW1bKe2Vmu7/rIvA6gIjkJA769ZlFF/OUFhV7vlLblwXWpu7ixcxqyKtgAVOVshB wSbwlBRR7NKOl/lwiotOtRNQEfg7BJF3JlonopHZT1p78A3q X-Google-Smtp-Source: AGHT+IHEQRObocb0ecrTqpFwc0iSakWV2+1e24XE2zQUacRF7DusUkO47nlYFV/5b+r2sd9aKweW4g== X-Received: by 2002:a05:6402:26d6:b0:601:a16e:4827 with SMTP id 4fb4d7f45d1cf-6028d6fe38bmr5654652a12.3.1748091715933; Sat, 24 May 2025 06:01:55 -0700 (PDT) Received: from localhost ([2a02:2454:a095:5600:a64e:31ff:fe38:fd6c]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6005a6e746csm13683424a12.47.2025.05.24.06.01.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 May 2025 06:01:55 -0700 (PDT) From: Sergey Trofimov Date: Sat, 24 May 2025 15:01:32 +0200 Message-ID: <2712aa81a808916cd2ef13e22222214adf9e1322.1748091536.git.sarg@sarg.org.ru> X-Mailer: git-send-email 2.49.0 In-Reply-To: <99f9547c43312c49e557b5e67a356a76cc6b2ad7.1748091536.git.sarg@sarg.org.ru> References: <99f9547c43312c49e557b5e67a356a76cc6b2ad7.1748091536.git.sarg@sarg.org.ru> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/services/networking.scm (iwd-service-type): New service type. (iwd-configuration), (iwd-settings), (iwd-scan-settings), (iwd-general-settings), (iwd-network-settings): New configuration types. * doc/guix.texi (Networking setup): Document it. Change-Id: I852115b9c6768b3ec4eedb34a7f9e66438bd1429 --- doc/guix.texi | 162 +++++++++++++++++++++++ gnu/services/networking.scm | 249 ++++++++++++++++++++++++++++++++++++ 2 files changed, 411 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index a9c815c35c..4d1b6372df 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -22408,6 +22408,168 @@ Networking Setup @end table @end deftp +@cindex IWD +@defvar iwd-service-type +This is the service type to run @acronyml{IWD,Internet Wireless Daemon}, +a wireless daemon required to authenticate against encrypted WiFi +networks. +@end defvar + +@quotation Warning +By default @code{iwd} removes and re-creates interfaces it manages. It +doesn't play nicely with @code{dhcp-client-service-type} that enumerates +wireless interfaces before starting the Shepherd service. Use either +@code{dhcpcd-service-type} or the @code{iwd}'s built-in DHCP client (see +@code{enable-network-configuration} option below). +@end quotation + +@quotation Warning +@code{iwd-service-type} conflicts with @code{wpa-supplicant-service-type}. +Make sure only one is configured. +@end quotation + +@c %start of fragment + +@deftp {Data Type} iwd-configuration +Available @code{iwd-configuration} fields are: + +@table @asis +@item @code{iwd} (default: @code{iwd}) (type: file-like) +The IWD package to use. + +@item @code{interfaces} (default: @code{()}) (type: list-of-strings) +If this is set, it must specify @dfn{glob patterns} matching network +interfaces that IWD will control. + +@item @code{ignored-interfaces} (default: @code{()}) (type: list-of-strings) +If this is set, it must specify @dfn{glob patterns} matching network +interfaces that IWD will not manage. + +@item @code{phys} (default: @code{()}) (type: list-of-strings) +If this is set, it must specify @dfn{glob patterns} matching network +PHYs names that IWD will control. + +@item @code{ignored-phys} (default: @code{()}) (type: list-of-strings) +If this is set, it must specify @dfn{glob patterns} matching network +PHYs names that IWD will not manage. + +@item @code{shepherd-requirement} (default: @code{()}) (type: list-of-symbols) +Shepherd requirements the service should depend on. + +@item @code{shepherd-provision} (default: @code{(iwd wireless-daemon)}) (type: list-of-symbols) +The name(s) of the service. + +@item @code{config} (type: iwd-settings) +Configuration settings. + +@end table + +@end deftp + + +@c %end of fragment + +@c %start of fragment + +@deftp {Data Type} iwd-settings +Available @code{iwd-settings} fields are: + +@table @asis +@item @code{general} (type: iwd-general-settings) +General settings. + +@item @code{network} (type: maybe-iwd-network-settings) +Network settings. + +@item @code{scan} (type: maybe-iwd-scan-settings) +Scan settings. + +@item @code{extra-config} (default: @code{()}) (type: list-of-strings) +Extra configuration values to append to the IWD configuration file. + +@end table + +@end deftp + + +@c %end of fragment + +@c %start of fragment + +@deftp {Data Type} iwd-general-settings +Available @code{iwd-general-settings} fields are: + +@table @asis +@item @code{enable-network-configuration?} (default: @code{#f}) (type: boolean) +Setting this option to true enables @code{iwd} to configure the network +interfaces with the IP addresses. + +@item @code{extra-options} (default: @code{()}) (type: alist) +An association list of option symbols/strings to string values to be +appended to the General settings group. + +@end table + +@end deftp + + +@c %end of fragment + +@c %start of fragment + +@deftp {Data Type} iwd-network-settings +Available @code{iwd-network-settings} fields are: + +@table @asis +@item @code{enable-ipv6?} (default: @code{#t}) (type: boolean) +Sets the global default that tells @code{iwd} whether it should +configure IPv6 addresses and routes + +@item @code{name-resolving-service} (default: @code{none}) (type: resolving-service) +Configures a DNS resolution method used by the system. + +@item @code{extra-options} (default: @code{()}) (type: alist) +An association list of option symbols/strings to string values to be +appended to the Network settings group. + +@end table + +@end deftp + + +@c %end of fragment + +@c %start of fragment + +@deftp {Data Type} iwd-scan-settings +Available @code{iwd-scan-settings} fields are: + +@table @asis +@item @code{disable-periodic-scan?} (default: @code{#f}) (type: boolean) +Setting this option to @code{#t} will prevent @code{iwd} from issuing +the periodic scans for the available networks while disconnected. + +@item @code{initial-periodic-scan-interval} (default: @code{10}) (type: number) +The initial periodic scan interval upon disconnect (in seconds). + +@item @code{maximum-periodic-scan-interval} (default: @code{300}) (type: number) +The maximum periodic scan interval (in seconds). + +@item @code{disable-roaming-scan?} (default: @code{#f}) (type: boolean) +Setting this option to @code{#t} will prevent @code{iwd} from trying to +scan when roaming decisions are activated. + +@item @code{extra-options} (default: @code{()}) (type: alist) +An association list of option symbols/strings to string values to be +appended to the Scan settings group. + +@end table + +@end deftp + + +@c %end of fragment + @cindex ModemManager Some networking devices such as modems require special care, and this is what the services below focus on. diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm index 900790ef2d..0a114d2a18 100644 --- a/gnu/services/networking.scm +++ b/gnu/services/networking.scm @@ -41,6 +41,7 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu services networking) + #:use-module (gnu home services utils) #:use-module (gnu services) #:use-module (gnu services base) #:use-module (gnu services configuration) @@ -56,6 +57,7 @@ (define-module (gnu services networking) #:use-module (gnu packages bash) #:use-module (gnu packages cluster) #:use-module (gnu packages connman) + #:use-module (gnu packages dns) #:use-module (gnu packages freedesktop) #:use-module (gnu packages linux) #:use-module (gnu packages tor) @@ -80,6 +82,7 @@ (define-module (gnu services networking) #:use-module (srfi srfi-9) #:use-module (srfi srfi-26) #:use-module (srfi srfi-43) + #:use-module ((ice-9 curried-definitions) #:select (define)) #:use-module (ice-9 match) #:use-module (ice-9 string-fun) #:use-module (json) @@ -235,6 +238,21 @@ (define-module (gnu services networking) wpa-supplicant-configuration-extra-options wpa-supplicant-service-type + iwd-configuration + iwd-configuration-config + iwd-configuration-ignored-interfaces + iwd-configuration-ignored-phys + iwd-configuration-interfaces + iwd-configuration-iwd + iwd-configuration-phys + iwd-configuration-shepherd-provision + iwd-configuration-shepherd-requirement + iwd-service-type + iwd-general-settings + iwd-network-settings + iwd-scan-settings + iwd-settings + hostapd-configuration hostapd-configuration? hostapd-configuration-package @@ -2099,6 +2117,237 @@ (define wpa-supplicant-service-type implements authentication, key negotiation and more for wireless networks.") (default-value (wpa-supplicant-configuration))))) + +;;; +;;; IWD +;;; +(define (iwd-uglify-field-name name) + (object->camel-case-string name 'upper)) + +(define (iwd-serialize-base field-name val) + (format #f "~a=~a\n" field-name val)) + +(define (iwd-serialize-field field-name val) + (iwd-serialize-base (iwd-uglify-field-name field-name) val)) + +(define iwd-serialize-number iwd-serialize-field) + +(define (iwd-serialize-boolean field-name value) + (iwd-serialize-field + (string-trim-right (symbol->string field-name) #\?) + (if value "true" "false"))) + +(define (iwd-serialize-alist field-name value) + (if (null? value) + "" + #~(string-append #$@(generic-serialize-alist list + iwd-serialize-base + value)))) + +(define-enumerated-field-type resolving-service + (none systemd resolvconf) + (prefix iwd-)) + +(define-configuration iwd-general-settings + (enable-network-configuration? + (boolean #f) + "Setting this option to true enables @code{iwd} to configure the network +interfaces with the IP addresses.") + (extra-options + (alist '()) + "An association list of option symbols/strings to string values to be +appended to the General settings group.") + + (prefix iwd-)) + +(define-configuration iwd-network-settings + (enable-ipv6? + (boolean #t) + "Sets the global default that tells @code{iwd} whether it should configure +IPv6 addresses and routes") + + (name-resolving-service + (resolving-service 'none) + "Configures a DNS resolution method used by the system.") + + (extra-options + (alist '()) + "An association list of option symbols/strings to string values to be +appended to the Network settings group.") + + (prefix iwd-)) + +(define-configuration iwd-scan-settings + (disable-periodic-scan? + (boolean #f) + "Setting this option to @code{#t} will prevent @code{iwd} from issuing the +periodic scans for the available networks while disconnected.") + + (initial-periodic-scan-interval + (number 10) + "The initial periodic scan interval upon disconnect (in seconds).") + + (maximum-periodic-scan-interval + (number 300) + "The maximum periodic scan interval (in seconds).") + + (disable-roaming-scan? + (boolean #f) + "Setting this option to @code{#t} will prevent @code{iwd} from trying to scan +when roaming decisions are activated.") + + (extra-options + (alist '()) + "An association list of option symbols/strings to string values to be +appended to the Scan settings group.") + + (prefix iwd-)) + +(define-maybe iwd-network-settings) +(define-maybe iwd-scan-settings) + +(define ((iwd-serialize-config-section fields) name cfg) + #~(format #f "[~a]\n~a\n" + #$(string-upcase (object->string name) 0 1) + #$(serialize-configuration cfg fields))) + +(define serialize-iwd-network-settings + (iwd-serialize-config-section iwd-network-settings-fields)) + +(define serialize-iwd-scan-settings + (iwd-serialize-config-section iwd-scan-settings-fields)) + +(define serialize-iwd-general-settings + (iwd-serialize-config-section iwd-general-settings-fields)) + +(define-configuration iwd-settings + (general + (iwd-general-settings (iwd-general-settings)) + "General settings.") + + (network + maybe-iwd-network-settings + "Network settings.") + + (scan + maybe-iwd-scan-settings + "Scan settings.") + + (extra-config + (list-of-strings '()) + "Extra configuration values to append to the IWD configuration file." + (serializer (lambda (_ value) (string-join value "\n" 'suffix))))) + +(define-configuration/no-serialization iwd-configuration + (iwd + (file-like iwd) + "The IWD package to use.") + + (interfaces + (list-of-strings '()) + "If this is set, it must specify @dfn{glob patterns} matching network +interfaces that IWD will control.") + + (ignored-interfaces + (list-of-strings '()) + "If this is set, it must specify @dfn{glob patterns} matching network +interfaces that IWD will not manage.") + + (phys + (list-of-strings '()) + "If this is set, it must specify @dfn{glob patterns} matching network +PHYs names that IWD will control.") + + (ignored-phys + (list-of-strings '()) + "If this is set, it must specify @dfn{glob patterns} matching network +PHYs names that IWD will not manage.") + + (shepherd-requirement + (list-of-symbols '()) + "Shepherd requirements the service should depend on.") + + (shepherd-provision + (list-of-symbols '(iwd wireless-daemon)) + "The name(s) of the service.") + + (config + (iwd-settings (iwd-settings)) + "Configuration settings.")) + +(define (iwd-generate-documentation) + (configuration->documentation 'iwd-configuration) + (configuration->documentation 'iwd-settings) + (configuration->documentation 'iwd-general-settings) + (configuration->documentation 'iwd-network-settings) + (configuration->documentation 'iwd-scan-settings)) + +(define (iwd-config-file config) + "Return an IWD configuration file." + (mixed-text-file "main.conf" + (serialize-configuration + (iwd-configuration-config config) + iwd-settings-fields))) + +(define (iwd-environment config) + (let ((resolver + (and=> (iwd-settings-network (iwd-configuration-config config)) + iwd-network-settings-name-resolving-service))) + + (if (eq? resolver 'resolvconf) + #~(list (string-append "PATH=" #$openresolv "/sbin")) + '()))) + +(define (iwd-shepherd-service config) + (match-record config + (iwd interfaces ignored-interfaces + phys ignored-phys + shepherd-requirement shepherd-provision) + + (list (shepherd-service + (documentation "Run Internet Wireless Daemon") + (provision shepherd-provision) + (requirement `(user-processes dbus-system loopback ,@shepherd-requirement)) + (start #~(make-forkexec-constructor + (list (string-append #$iwd "/libexec/iwd") + "--logger=syslog" + #$@(if (null? interfaces) '() + (list (string-append "--interfaces=" + (string-join interfaces ",")))) + #$@(if (null? ignored-interfaces) '() + (list (string-append "--nointerfaces=" + (string-join ignored-interfaces ",")))) + #$@(if (null? phys) '() + (list (string-append "--phys=" + (string-join phys ",")))) + #$@(if (null? ignored-phys) '() + (list (string-append "--nophys=" + (string-join ignored-phys ","))))) + + #:environment-variables + #$(iwd-environment config))) + (stop #~(make-kill-destructor)))))) + +(define (iwd-etc-service config) + `(("iwd/main.conf" ,(iwd-config-file config)))) + +(define iwd-service-type + (let ((add-iwd-package (compose list iwd-configuration-iwd))) + (service-type (name 'iwd) + (extensions + (list (service-extension shepherd-root-service-type + iwd-shepherd-service) + (service-extension etc-service-type + iwd-etc-service) + (service-extension dbus-root-service-type + add-iwd-package) + (service-extension profile-service-type + add-iwd-package))) + (default-value (iwd-configuration)) + (description + "Run @url{https://iwd.wiki.kernel.org/,Iwd}, +a network connection manager.")))) + ;;; ;;; Hostapd.