File tree Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change 203
203
networking.firewall.allowedTCPPorts = lib.optional (hypervisor == "qemu") 22;
204
204
services.openssh = lib.optionalAttrs (hypervisor == "qemu") {
205
205
enable = true;
206
- } // (
207
- if builtins.compareVersions lib.version "22.11" <= 0
208
- then {
209
- # NixOS<23.05 option
210
- permitRootLogin = "yes";
211
- } else {
212
- # NixOS>=23.05 setting
213
- settings.PermitRootLogin = "yes";
214
- }
215
- );
206
+ settings.PermitRootLogin = "yes";
207
+ };
216
208
})
217
209
config
218
210
];
238
230
networking.firewall.allowedTCPPorts = [ 22 ];
239
231
services.openssh = {
240
232
enable = true;
241
- } // (
242
- if builtins.compareVersions lib.version "22.11" <= 0
243
- then {
244
- # NixOS<23.05 option
245
- permitRootLogin = "yes";
246
- } else {
247
- # NixOS>=23.05 setting
248
- settings.PermitRootLogin = "yes";
249
- }
250
- );
233
+ settings.PermitRootLogin = "yes";
234
+ };
251
235
};
252
236
};
253
237
};
You can’t perform that action at this time.
0 commit comments