You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
515 B
12 lines
515 B
{ user, ... }:
|
|
|
|
let keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEQNlGt62dBMojVCX7EUIia+wfSDfLzV4YCPi8SZ2xrp elnu@elnu.com" # elnu
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH62YpVC8GaZXE8CHfyl1yAXXdlUSGNkyE95whYdUpct elnu@elnu.com" # pang13
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFk17FClBIVjNziVt8Of+APv7WCRmOn2+Mv1IgCsz0TD elnu@elnu.com" # pang13 Windwos
|
|
]; in
|
|
{
|
|
services.openssh.enable = true;
|
|
users.users.root.openssh.authorizedKeys.keys = keys;
|
|
users.users.${user}.openssh.authorizedKeys.keys = keys;
|
|
} |