1
0
Fork 0
dotfiles/home/programs/ssh/mediaserver.nix
2023-07-08 11:51:45 +02:00

28 lines
500 B
Nix

{ pkgs, config, ... }:
let
ssh-directory = "${config.home.homeDirectory}/.ssh";
ssh-keys = import ../../../system/shared/ssh-keys.nix;
in
{
home.packages = [ pkgs.openssh ];
programs.ssh = {
enable = true;
forwardAgent = false;
compression = false;
hashKnownHosts = true;
serverAliveInterval = 60;
extraConfig = ''
UpdateHostKeys ask
# VerifyHostKeyDNS yes
'';
};
home.file = {
"${ssh-directory}/GitHub.pub".text = ssh-keys.GitHub;
};
}