add public key
This commit is contained in:
parent
a8397b85c1
commit
8a658dc594
1 changed files with 5 additions and 2 deletions
|
@ -27,7 +27,6 @@
|
|||
outputs = { self, sops-nix, nixpkgs, srvos, disko, ... }@inputs:
|
||||
let
|
||||
linuxMachineName = "linux";
|
||||
sshPubKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBsUe5YF5z8vGcEYtQX7AAiw2rJygGf2l7xxr8nZZa7w";
|
||||
lib = nixpkgs.lib;
|
||||
inherit (self) outputs;
|
||||
in {
|
||||
|
@ -47,7 +46,11 @@
|
|||
{
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
networking.hostName = "aarch64-linux";
|
||||
users.users.root.openssh.authorizedKeys.keys = [ sshPubKey ];
|
||||
users.users.root.openssh.authorizedKeys.keys =
|
||||
[
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBsUe5YF5z8vGcEYtQX7AAiw2rJygGf2l7xxr8nZZa7w jahanson@legiondary"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJyA/yMPPo+scxBaDFUk7WeEyMAMhXUro5vi4feOKsJT jahanson@durincore"
|
||||
];
|
||||
services.openssh.enable = true;
|
||||
services.openssh.settings.PermitRootLogin = "without-password";
|
||||
}];
|
||||
|
|
Loading…
Reference in a new issue