mirror of
https://github.com/Moe1369/nixos-config.git
synced 2024-10-18 08:14:08 +02:00
12 lines
347 B
Nix
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"
|
|
];
|
|
}
|