diff --git a/modules/system/services/forgejo/ssh.nix b/modules/system/services/forgejo/ssh.nix index 77d5e0a..ef02c00 100644 --- a/modules/system/services/forgejo/ssh.nix +++ b/modules/system/services/forgejo/ssh.nix @@ -5,6 +5,7 @@ config = lib.mkIf config.custom.services.forgejo.ssh.enable { services.openssh = { enable = true; + authorizedKeysFiles = lib.mkForce [ "${config.services.forgejo.stateDir}/.ssh/authorized_keys" ]; settings = { PasswordAuthentication = false; KbdInteractiveAuthentication = false;