File tree 2 files changed +4
-9
lines changed
2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 91
91
# Make NixOps's deployment.* options available.
92
92
./options.nix
93
93
./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
- } )
102
94
] ;
103
95
} ) . type ;
104
96
} ;
Original file line number Diff line number Diff line change 1
- { config , lib , ... } :
1
+ { name , config , lib , ... } :
2
2
3
3
with lib ;
4
4
167
167
168
168
_type = "machine" ;
169
169
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 ;
170
173
deployment . targetHost = mkDefault config . networking . hostName ;
171
174
deployment . targetPort = mkDefault ( head config . services . openssh . ports ) ;
172
175
You can’t perform that action at this time.
0 commit comments