mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 23:11:34 +01:00
Only ever use forgejo's ssh-keys for openssh
This commit is contained in:
parent
3926a6eeb9
commit
50f6bc35c0
1 changed files with 1 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
config = lib.mkIf config.custom.services.forgejo.ssh.enable {
|
config = lib.mkIf config.custom.services.forgejo.ssh.enable {
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
authorizedKeysFiles = lib.mkForce [ "${config.services.forgejo.stateDir}/.ssh/authorized_keys" ];
|
||||||
settings = {
|
settings = {
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
KbdInteractiveAuthentication = false;
|
KbdInteractiveAuthentication = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue