nixos/common/remote-access.nix
Ivan Bushchik 36827602b6
remote-access: Add waypipe if sway enabled
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2024-01-02 17:44:11 +03:00

20 lines
414 B
Nix

{ config, pkgs, lib, ... }:
{
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
# Cute banner, r-right?
banner = ''
Authorized access only!
If you are not authorized to access or use this system, disconnect now!
'';
};
environment.systemPackages = lib.mkIf config.my.roles.graphical.enable [ pkgs.waypipe ];
programs.ssh.startAgent = true;
}