nixos-config/modules/system/ssh/default.nix
Mohamed C. 659cc31bc4
Some checks are pending
Flake.lock / build (push) Waiting to run
ssh is a system setting not user
2024-08-30 22:27:45 +02:00

12 lines
347 B
Nix

{ user, ... }:
{
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
};
users.users.${user}.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEun1YkEfxTpcsQk7ZIwuVTcSsVHjwuKA7xOW4TAi3SE mo@workstation"
];
}