From d80762acc8f626004cc8bfa51e7a3927f351d067 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 23 Jul 2016 12:18:46 +0200 Subject: tv ssh: init --- tv/2configs/ssh.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tv/2configs/ssh.nix (limited to 'tv/2configs/ssh.nix') diff --git a/tv/2configs/ssh.nix b/tv/2configs/ssh.nix new file mode 100644 index 00000000..7bf58342 --- /dev/null +++ b/tv/2configs/ssh.nix @@ -0,0 +1,25 @@ +{ config, pkgs, ... }: + +with config.krebs.lib; + +{ + # Override NixOS's "Allow DSA keys for now." + environment.etc."ssh/ssh_config".text = mkForce '' + AddressFamily ${if config.networking.enableIPv6 then "any" else "inet"} + + ${optionalString config.programs.ssh.setXAuthLocation '' + XAuthLocation ${pkgs.xorg.xauth}/bin/xauth + ''} + + ForwardX11 ${if config.programs.ssh.forwardX11 then "yes" else "no"} + + ${config.programs.ssh.extraConfig} + ''; + + programs.ssh = { + extraConfig = '' + UseRoaming no + ''; + startAgent = false; + }; +} -- cgit v1.2.3