nixos/common/remote-access.nix

20 lines
339 B
Nix
Raw Normal View History

{ cfg, lib, ... }:
2023-07-28 15:39:50 +03:00
let my = import ../.;
in {
2023-07-28 15:39:50 +03:00
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
# Cute banner, r-right?
2023-08-09 15:11:50 +03:00
banner = ''
Authorized access only!
2023-08-09 15:11:50 +03:00
If you are not authorized to access or use this system, disconnect now!
2023-08-09 15:11:50 +03:00
'';
2023-07-28 15:39:50 +03:00
};
programs.ssh.startAgent = true;
}