Fix forgejo

This commit is contained in:
Henry Hiles 2025-07-09 10:51:07 -04:00
commit 4a53253800
No known key found for this signature in database
4 changed files with 28 additions and 15 deletions

7
modules/desktop/ssh.nix Normal file
View file

@ -0,0 +1,7 @@
{
programs.ssh.extraConfig = ''
Host server
HostName ssh.federated.nexus
Port 2222
'';
}

View file

@ -1,7 +1,11 @@
{
let
port = 2222;
in {
networking.firewall.allowedTCPPorts = [port];
users.users.quadradical.openssh.authorizedKeys.keys = import ../../secrets/keys.nix;
services.openssh = {
enable = true;
ports = [port];
settings = {
PasswordAuthentication = false;
AllowUsers = ["quadradical"];