From df1c309606797a8ed2e41a6d85bb9987a0b8b01e Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Wed, 5 Jun 2024 20:47:49 -0300 Subject: add default user key to authorized keys --- users/leonardo.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'users/leonardo.nix') diff --git a/users/leonardo.nix b/users/leonardo.nix index 91a80bf..10d9602 100644 --- a/users/leonardo.nix +++ b/users/leonardo.nix @@ -111,7 +111,7 @@ in extraGroups = [ "networkmanager" "wheel" ]; shell = pkgs.bashInteractive; hashedPasswordFile = config.age.secrets.user-pass.path; - openssh.authorizedKeys.keys = builtins.attrValues (hosts-pub-keys); + openssh.authorizedKeys.keys = [ (builtins.readFile ../secrets/user-ssh-key.pub)] ++ builtins.attrValues (hosts-pub-keys); }; age = { -- cgit v1.2.3