summary refs log tree commit diff stats
path: root/modules/ssh.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ssh.nix')
-rw-r--r--modules/ssh.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/ssh.nix b/modules/ssh.nix
new file mode 100644
index 0000000..44580d7
--- /dev/null
+++ b/modules/ssh.nix
@@ -0,0 +1,10 @@
+{ config, libs, pkgs, ... }:
+{
+
+  services.openssh = {
+    enable = true;
+    settings.PasswordAuthentication = false;
+  };
+  networking.firewall.allowedTCPPorts = [ 22 ];
+
+}