Fix forgejo
This commit is contained in:
parent
1ac4ff7516
commit
4a53253800
4 changed files with 28 additions and 15 deletions
7
modules/desktop/ssh.nix
Normal file
7
modules/desktop/ssh.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
programs.ssh.extraConfig = ''
|
||||
Host server
|
||||
HostName ssh.federated.nexus
|
||||
Port 2222
|
||||
'';
|
||||
}
|
|
@ -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"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue