From cf3b38a355528e8fcb3c26677924519c3883b6a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Wed, 31 Jan 2024 21:17:59 +0100 Subject: [PATCH] fix(nixos): Add warning about importing SSH keys This bit me in the butt when trying to use this with gitea. --- nixos/options.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/options.nix b/nixos/options.nix index 81838a3..a99ec83 100644 --- a/nixos/options.nix +++ b/nixos/options.nix @@ -68,9 +68,14 @@ let The format is `"$${github-username}" = $${sha256-hash}`. The example will try to fetch the keys from . + + **Warning**: this will interfere with services like gitea that override + the default ssh behaviour. In that case you want to use + `users.users..openssh.authorizedKeys.keyFiles` on the users you + want to allow ssh logins. ''; default = { }; - example = { "jalil-salame" = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; }; + example = { "jalil-salame" = "sha256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; }; type = types.attrsOf types.str; }; };