summaryrefslogtreecommitdiffstats
path: root/tv/2configs/sshd.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-07-23 13:11:50 +0200
committertv <tv@krebsco.de>2016-07-23 13:11:50 +0200
commitea74d584d2b836d6971f3d4675e3a9c44b68f8f5 (patch)
tree5bede088799bb87922e173a45d29de9d8d7baa85 /tv/2configs/sshd.nix
parent018f498918d0bd8c0f9c5c3324221afffc95bc67 (diff)
tv sshd: init
Diffstat (limited to 'tv/2configs/sshd.nix')
-rw-r--r--tv/2configs/sshd.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/tv/2configs/sshd.nix b/tv/2configs/sshd.nix
new file mode 100644
index 0000000..943f32f
--- /dev/null
+++ b/tv/2configs/sshd.nix
@@ -0,0 +1,16 @@
+{ config, lib, pkgs, ... }:
+
+with config.krebs.lib;
+
+{
+ services.openssh = {
+ enable = true;
+ hostKeys = [
+ {
+ type = "ed25519";
+ path = "/etc/ssh/ssh_host_ed25519_key";
+ }
+ ];
+ };
+ tv.iptables.input-internet-accept-tcp = singleton "ssh";
+}