dev.fron.io rc / 840a138
zeta: revert ssh Tony Olagbaiye 1 year, 7 months ago
2 changed file(s) with 13 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
189189 userkeys = "TrustedUserCAKeys /etc/ssh/ssh_user-ca.pub";
190190 revokedkeys = "RevokedKeys /etc/ssh/ssh_revoked_keys";
191191 in builtins.concatStringsSep "\n" (certificates ++ [ userkeys revokedkeys ]);
192 services.openssh.startWhenNeeded = true;
192 #services.openssh.startWhenNeeded = true;
193
194 # Bit meta but helps ensure sshd is bound to all addresses always
195 # TODO: move to profile
196 systemd.services.restart-openssh.script = "${pkgs.systemd}/bin/systemctl restart sshd";
197 systemd.timers.restart-openssh = {
198 timerConfig = {
199 OnCalendar = "Hourly";
200 Unit = "restart-openssh.service";
201 };
202 };
193203
194204 programs.mosh.enable = true;
195205 environment.variables.MOSH_SERVER_NETWORK_TMOUT = "86400";
6161 ) peers);
6262 };
6363 };
64
65 systemd.services.wireguard-wg0.serviceConfig.Before = [ "sshd.service" ];
6466 }