From 53a5856fa82846ac9b4daf4465758d15edd63cd1 Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 30 Dec 2024 16:52:58 +0100 Subject: Allow user public keys for SSH login Signed-off-by: Mel --- configuration/configuration.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/configuration/configuration.nix b/configuration/configuration.nix index 5f7d8bd..e8e20e2 100644 --- a/configuration/configuration.nix +++ b/configuration/configuration.nix @@ -24,16 +24,18 @@ users.mutableUsers = false; users.users = { - mel = { + mel = with credentials.mel; { isNormalUser = true; extraGroups = [ "wheel" ]; - hashedPassword = credentials.mel.password; + hashedPassword = password; + openssh.authorizedKeys.keys = keys; }; - philip = { + philip = with credentials.philip; { isNormalUser = true; extraGroups = [ "wheel" ]; - hashedPassword = credentials.philip.password; + hashedPassword = password; + openssh.authorizedKeys.keys = keys; }; }; -- cgit 1.4.1