nixos/common/remote-access.nix

21 lines
418 B
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
2023-07-28 15:39:50 +03:00
{
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
};
environment.systemPackages =
lib.mkIf config.my.roles.graphical.enable [ pkgs.waypipe ];
programs.ssh.startAgent = true;
}