diff options
| author | Fuwn <[email protected]> | 2024-09-23 04:22:55 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-23 04:26:18 -0700 |
| commit | 25c0dc8a00f2a74009b036421455da00cb91d1f2 (patch) | |
| tree | 2449436c51444840ddd2446e6be115c7cdb444e8 /modules/core/access/openssh.nix | |
| parent | modules: move shared modules to core (diff) | |
| download | nixos-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.nix | 26 |
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 = [ + ]; + }; + }; +} |