modules/darwin/common: add some ssh settings

This commit is contained in:
zowoq 2023-07-29 19:30:32 +10:00
parent a0f5debd42
commit 9fe659f34a

View file

@ -51,6 +51,15 @@ in
htop
];
# srvos
services.openssh.authorizedKeysFiles = pkgs.lib.mkForce [ "/etc/ssh/authorized_keys.d/%u" ];
# srvos
environment.etc."ssh/sshd_config.d/darwin.conf".text = ''
KbdInteractiveAuthentication no
PasswordAuthentication no
'';
# works but displays error message during activation
# https://github.com/LnL7/nix-darwin/issues/359
# sudo systemsetup -settimezone 'GMT'