hosts: add elnucentre
This commit is contained in:
parent
70474fac8e
commit
4835d30b62
5 changed files with 112 additions and 0 deletions
11
hosts/elnucentre/modules/ssh.nix
Normal file
11
hosts/elnucentre/modules/ssh.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ user, ... }:
|
||||
|
||||
let keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEQNlGt62dBMojVCX7EUIia+wfSDfLzV4YCPi8SZ2xrp elnu@elnu.com" # elnu
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH62YpVC8GaZXE8CHfyl1yAXXdlUSGNkyE95whYdUpct elnu@elnu.com" # pang13
|
||||
]; in
|
||||
{
|
||||
services.openssh.enable = true;
|
||||
users.users.root.openssh.authorizedKeys.keys = keys;
|
||||
users.users.${user}.openssh.authorizedKeys.keys = keys;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue