Don't repeat services.openssh.enable = true

This commit is contained in:
Sandro - 2022-12-19 01:08:45 +01:00
parent fee4372499
commit 28694f4b5f
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
4 changed files with 7 additions and 16 deletions

View File

@ -26,8 +26,6 @@ in
];
};
services.openssh.enable = true;
# runs mainly to obtain a TLS certificate
services.nginx = {
enable = true;

View File

@ -33,8 +33,6 @@ in {
Exec "collectd" "${routecount}"
'';
# SSH for deployment
services.openssh.enable = true;
sops = {
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
defaultSopsFile = ./secrets.yaml;

View File

@ -75,16 +75,13 @@
params."nginx".bits = 4096;
};
services.openssh = {
enable = true;
extraConfig = ''
Match User ftpupload
X11Forwarding no
ChrootDirectory /var/www/ftp.c3d2.de
AllowTcpForwarding no
ForceCommand internal-sftp
'';
};
services.openssh.extraConfig = ''
Match User ftpupload
X11Forwarding no
ChrootDirectory /var/www/ftp.c3d2.de
AllowTcpForwarding no
ForceCommand internal-sftp
'';
sops = {
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];

View File

@ -7,8 +7,6 @@
isInHq = false;
};
services.openssh.enable = true;
networking.hostName = "grafana";
# http https influxdb