feat: don't load allowUsers if the hostname is tyr.

This commit is contained in:
CronyAkatsuki 2026-01-18 16:55:13 +01:00
parent 07efa1e119
commit 508531f5ef

View file

@ -2,7 +2,14 @@
services.openssh = {
enable = true;
settings = {
AllowUsers = ["root@65.21.241.194" "root@172.16.0.2" "crony@65.21.241.194" "crony@172.16.0.2"];
AllowUsers =
lib.mkIf (config.networking.hostName != "tyr")
[
"root@65.21.241.194"
"root@172.16.0.2"
"crony@65.21.241.194"
"crony@172.16.0.2"
];
X11Forwarding = false;
PasswordAuthentication = false;
};