tv sshd: init
This commit is contained in:
parent
ce32d546de
commit
268303de88
@ -30,6 +30,7 @@ with config.krebs.lib;
|
|||||||
./bash.nix
|
./bash.nix
|
||||||
./nginx
|
./nginx
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
|
./sshd.nix
|
||||||
./vim.nix
|
./vim.nix
|
||||||
{
|
{
|
||||||
# stockholm dependencies
|
# 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 = [
|
environment.systemPackages = [
|
||||||
pkgs.get
|
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 New Issue
Block a user