diff options
| author | Mel <einebeere@gmail.com> | 2024-12-30 16:52:58 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-12-30 16:52:58 +0100 |
| commit | 53a5856fa82846ac9b4daf4465758d15edd63cd1 (patch) | |
| tree | 661de7b3fc64b5cb2b1f367d98f1a2fa85af687d /configuration/configuration.nix | |
| parent | e062b2741ff294e1f3e88fe7253c1a8482f4b249 (diff) | |
| download | specimen-53a5856fa82846ac9b4daf4465758d15edd63cd1.tar.zst specimen-53a5856fa82846ac9b4daf4465758d15edd63cd1.zip | |
Allow user public keys for SSH login
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'configuration/configuration.nix')
| -rw-r--r-- | configuration/configuration.nix | 10 |
1 files 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; }; }; |
