From 8a658dc594afa60aac36b5bad86ed8ce3faeac3b Mon Sep 17 00:00:00 2001 From: jahanson Date: Mon, 20 May 2024 19:36:37 -0500 Subject: [PATCH] add public key --- flake.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 1a3d915..85b28a3 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; }];