summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
author45mg <45mg.writes@gmail.com>2025-02-12 15:39:22 +0530
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2025-02-13 01:02:03 +0900
commit0caba8f5db48c15a2c3edae37e816654246fa986 (patch)
tree67798ceda58af8bc03c4ebeb2d1dbe167c881ea6 /doc
parent51720d1afa68a54df92dd331c100b4995cb4070e (diff)
services: network-manager: Add extra-configuration-files field.
Allow users to specify additional configuration files for NetworkManager. These files will be added to /etc/NetworkManager/conf.d (NetworkManager's default configuration directory location). * gnu/services/networking.scm (<network-manager-configuration>) [extra-configuration-files]: New field. (network-manager-activation): Honor the new field. * doc/guix.texi (Networking Setup): Document the new field. Change-Id: I07479958e4d0aa318328c666a9630b779230b300 Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 278e610194..22e3e0c4fd 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -21636,6 +21636,28 @@ This is the list of available plugins for virtual private networks
(VPNs). An example of this is the @code{network-manager-openvpn}
package, which allows NetworkManager to manage VPNs @i{via} OpenVPN.
+@item @code{extra-configuration-files} (default: @code{'()})
+A list of two-element lists; the first element of each list is a file
+name (as a string), and the second is a file-like object. Used to
+specify configuration files which will be added to the
+@file{/etc/NetworkManager/conf.d}. NetworkManager will read additional
+configuration from this directory. For details on configuration file
+precedence and the configuration file format, see @samp{man 5
+NetworkManager.conf}.
+
+For example, to add two files named @file{001-basic.conf} and
+@file{002-unmanaged.conf}:
+
+@lisp
+(service network-manager-service-type
+ (network-manager-configuration
+ (extra-configuration-files
+ `(("existing-file" ,(local-file "001-basic.conf"))
+ ("constructed-file" ,(plain-file "002-unmanaged.conf"
+ "[keyfile]
+unmanaged-devices=interface-name:wlo1_ap\n"))))))
+@end lisp
+
@end table
@end deftp