add public key

This commit is contained in:
Joseph Hanson 2024-05-20 19:36:37 -05:00
parent a8397b85c1
commit 8a658dc594

View file

@ -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";
}];