File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9191 # Make NixOps's deployment.* options available.
9292 ./options.nix
9393 ./resource.nix
94- ( { name , ... } : rec {
95- _file = ./net.nix ;
96- key = _file ;
97- # Provide a default hostname and deployment target equal
98- # to the attribute name of the machine in the model.
99- networking . hostName = lib . mkOverride 900 name ;
100- deployment . targetHost = lib . mkOverride 900 name ;
101- } )
10294 ] ;
10395 } ) . type ;
10496 } ;
Original file line number Diff line number Diff line change 1- { config , lib , ... } :
1+ { name , config , lib , ... } :
22
33with lib ;
44
167167
168168 _type = "machine" ;
169169
170+ # Provide a default hostname and deployment target equal
171+ # to the attribute name of the machine in the model.
172+ networking . hostName = lib . mkOverride 900 name ;
170173 deployment . targetHost = mkDefault config . networking . hostName ;
171174 deployment . targetPort = mkDefault ( head config . services . openssh . ports ) ;
172175
You can’t perform that action at this time.
0 commit comments