Skip to content

Commit 8daed5f

Browse files
committed
flake.nix: drop nixos 22.11 compat in examples
1 parent 628f7d6 commit 8daed5f

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

flake.nix

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -203,16 +203,8 @@
203203
networking.firewall.allowedTCPPorts = lib.optional (hypervisor == "qemu") 22;
204204
services.openssh = lib.optionalAttrs (hypervisor == "qemu") {
205205
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+
};
216208
})
217209
config
218210
];
@@ -238,16 +230,8 @@
238230
networking.firewall.allowedTCPPorts = [ 22 ];
239231
services.openssh = {
240232
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+
};
251235
};
252236
};
253237
};

0 commit comments

Comments
 (0)