aboutsummaryrefslogtreecommitdiffstats
path: root/modules/security/ssh/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/security/ssh/default.nix')
-rw-r--r--modules/security/ssh/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/security/ssh/default.nix b/modules/security/ssh/default.nix
new file mode 100644
index 0000000..7e8752a
--- /dev/null
+++ b/modules/security/ssh/default.nix
@@ -0,0 +1,26 @@
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}:
+
+# OpenSSH - Secure shell (SSH) client for encrypted remote connections
+{
+ imports = [ ./git.nix ];
+
+ config = lib.mkIf config.programs.ssh.enable {
+ programs.ssh = {
+ package = pkgs.openssh;
+ enableDefaultConfig = false;
+ extraOptionOverrides = {
+ AddKeysToAgent = "yes";
+ ForwardAgent = "yes";
+ ServerAliveInterval = "60";
+ ServerAliveCountMax = "3";
+ VisualHostKey = "yes";
+ HashKnownHosts = "yes";
+ };
+ };
+ };
+}