Fix forgejo
This commit is contained in:
parent
1ac4ff7516
commit
4a53253800
4 changed files with 28 additions and 15 deletions
|
@ -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