File tree 1 file changed +19
-2
lines changed
nixos/modules/services/networking
1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 12
12
configFile = writeText "NetworkManager.conf" ''
13
13
[main]
14
14
plugins=keyfile
15
+ dhcp=${ cfg . dhcp }
15
16
dns=${ if cfg . useDnsmasq then "dnsmasq" else "default" }
16
17
17
18
[keyfile]
21
22
''unmanaged-devices=${ lib . concatStringsSep ";" cfg . unmanaged } '' }
22
23
23
24
[logging]
24
- level=WARN
25
+ level=${ cfg . logLevel }
25
26
26
27
[connection]
27
28
ipv6.ip6-privacy=2
@@ -138,6 +139,22 @@ in {
138
139
apply = list : ( attrValues cfg . basePackages ) ++ list ;
139
140
} ;
140
141
142
+ dhcp = mkOption {
143
+ type = types . enum [ "dhclient" "dhcpcd" "internal" ] ;
144
+ default = "dhclient" ;
145
+ description = ''
146
+ Which program (or internal library) should be used for DHCP.
147
+ '' ;
148
+ } ;
149
+
150
+ logLevel = mkOption {
151
+ type = types . enum [ "OFF" "ERR" "WARN" "INFO" "DEBUG" "TRACE" ] ;
152
+ default = "WARN" ;
153
+ description = ''
154
+ Set the default logging verbosity level.
155
+ '' ;
156
+ } ;
157
+
141
158
appendNameservers = mkOption {
142
159
type = types . listOf types . str ;
143
160
default = [ ] ;
181
198
} ;
182
199
183
200
type = mkOption {
184
- type = types . enum ( attrNames dispatcherTypesSubdirMap ) ;
201
+ type = types . enum ( attrNames dispatcherTypesSubdirMap ) ;
185
202
default = "basic" ;
186
203
description = ''
187
204
Dispatcher hook type. Only basic hooks are currently available.
You can’t perform that action at this time.
0 commit comments