1 { lib, inputs, hostName, ... }:
4 programs.mosh.enable = mkDefault true;
5 services.openssh.enable = true;
6 # TODO: use hostKeys= once LoadCredentialEncrypted= works in ExecStartPre=
7 services.openssh.hostKeys = mkForce [ ];
8 services.openssh.extraConfig = ''
9 HostKey /run/credentials/sshd.service/host.key