tv sshd: init

This commit is contained in:
tv 2016-07-23 13:11:50 +02:00
parent ce32d546de
commit 268303de88
2 changed files with 17 additions and 10 deletions

View File

@ -30,6 +30,7 @@ with config.krebs.lib;
./bash.nix
./nginx
./ssh.nix
./sshd.nix
./vim.nix
{
# stockholm dependencies
@ -135,16 +136,6 @@ 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";
}
{
environment.systemPackages = [
pkgs.get

16
tv/2configs/sshd.nix Normal file
View File

@ -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";
}