summaryrefslogtreecommitdiff
path: root/modules/core/access/openssh.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-23 04:22:55 -0700
committerFuwn <[email protected]>2024-09-23 04:26:18 -0700
commit25c0dc8a00f2a74009b036421455da00cb91d1f2 (patch)
tree2449436c51444840ddd2446e6be115c7cdb444e8 /modules/core/access/openssh.nix
parentmodules: move shared modules to core (diff)
downloadnixos-config-25c0dc8a00f2a74009b036421455da00cb91d1f2.tar.xz
nixos-config-25c0dc8a00f2a74009b036421455da00cb91d1f2.zip
modules: move shared access modules to core
Diffstat (limited to 'modules/core/access/openssh.nix')
-rw-r--r--modules/core/access/openssh.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/core/access/openssh.nix b/modules/core/access/openssh.nix
new file mode 100644
index 0000000..8128bfb
--- /dev/null
+++ b/modules/core/access/openssh.nix
@@ -0,0 +1,26 @@
+{
+ services.openssh = {
+ enable = true;
+ openFirewall = false;
+
+ settings = {
+ StreamLocalBindUnlink = "yes";
+ GatewayPorts = "clientspecified";
+
+ KexAlgorithms = [
+ "curve25519-sha256"
+ "diffie-hellman-group16-sha512"
+ "diffie-hellman-group18-sha512"
+ "diffie-hellman-group-exchange-sha256"
+ ];
+
+ Macs = [
+ ];
+ };
+ };
+}