NixFiles/systems/mdesktop/ssh.nix

12 lines
351 B
Nix
Raw Normal View History

2023-03-09 08:33:38 +00:00
{ config, username, ... }:
{
services.openssh = {
enable = true;
settings.permitRootLogin = "no";
settings.passwordAuthentication = false;
};
programs.ssh.hostKeyAlgorithms = [ "sk-ssh-ed25519@openssh.com" "ssh-ed25519" ];
2023-04-02 18:01:14 +01:00
users.users.${username}.openssh.authorizedKeys.keyFiles = [ ../../maddie/common/ssh/id_ed25519_sk.pub ];
2023-03-09 08:33:38 +00:00
}