File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 1313 nameValuePair
1414 optionalAttrs
1515 optionalString
16+ optionals
1617 range
1718 toLower
1819 types
9596 name : config :
9697 let
9798 hostnames =
98- optionalString (
99- config . networking . domain != null
100- ) "${ config . networking . hostName } .${ config . networking . domain } "
101- + "${ config . networking . hostName } \n " ;
99+ [
100+ "${ config . networking . hostName } "
101+ ]
102+ ++ optionals ( config . networking . domain != null ) [
103+ "${ config . networking . hostName } .${ config . networking . domain } "
104+ ] ;
102105 in
103106 optionalAttrs ( config . networking . primaryIPAddress != "" ) {
104- "${ config . networking . primaryIPAddress } " = [ hostnames ] ;
107+ "${ config . networking . primaryIPAddress } " = hostnames ;
105108 }
106109 // optionalAttrs ( config . networking . primaryIPv6Address != "" ) {
107- "${ config . networking . primaryIPv6Address } " = [ hostnames ] ;
110+ "${ config . networking . primaryIPv6Address } " = hostnames ;
108111 }
109112 ) nodes ;
110113
You can’t perform that action at this time.
0 commit comments