tv sshd: init
This commit is contained in:
parent
ce32d546de
commit
268303de88
tv/2configs
|
@ -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
16
tv/2configs/sshd.nix
Normal 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";
|
||||
}
|
Loading…
Reference in a new issue