File tree 1 file changed +2
-12
lines changed
1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 20
20
21
21
options = {
22
22
23
- networking . fqdn = lib . mkOption {
24
- type = types . nullOr types . str ;
25
- default = null ;
26
- example = "foo.example.com" ;
27
- description = ''
28
- Fully qualified domain name, if any.
29
- '' ;
30
- } ;
31
-
32
23
networking . hosts = lib . mkOption {
33
24
type = types . attrsOf ( types . listOf types . str ) ;
34
25
default = { } ;
220
211
( builtins . hasAttr "::1" cfg . hosts )
221
212
( concatStringsSep " " ( remove "localhost" cfg . hosts . "::1" ) ) ;
222
213
otherHosts = allToString ( removeAttrs cfg . hosts [ "127.0.0.1" "::1" ] ) ;
223
- maybeFQDN = optionalString ( cfg . fqdn != null ) cfg . fqdn ;
224
214
in
225
215
''
226
- 127.0.0.1 ${ maybeFQDN } ${ userLocalHosts } localhost
216
+ 127.0.0.1 ${ userLocalHosts } localhost
227
217
${ optionalString cfg . enableIPv6 ''
228
- ::1 ${ maybeFQDN } ${ userLocalHosts6 } localhost
218
+ ::1 ${ userLocalHosts6 } localhost
229
219
'' }
230
220
${ otherHosts }
231
221
${ cfg . extraHosts }
You can’t perform that action at this time.
0 commit comments