CCE

SSH Configuration

emacs-lisp:tangle ~/nix/lisp/ssh.el
(provide 'cce/ssh)
nix:tangle ~/nix/nixos/ssh_client.nix
{...}:
{
  services.openssh.enable = true;
  programs.ssh.startAgent = true;
}
nix:tangle ~/nix/hm/ssh_client.nix
{...}:
{
  programs.ssh = {
    enable = true;
    matchBlocks = {
      "*" = {
        identityFile = "/home/rrix/.ssh/id_rsa";
        extraOptions = {
          PubkeyAcceptedKeyTypes = "+ssh-rsa";
        };
      };
      fontkeming = {
        user = "rrix";
        localForwards = [
          {
            host.address = "localhost";
            bind.port = 9091;
            host.port = 9091;
          }
          {
            host.address = "localhost";
            bind.port = 8385;
            host.port = 8384;
          }
        ];
      };
    };
  };
}