create ssh host keys

This commit is contained in:
Adithya 2023-07-29 15:22:56 +05:30
parent ff467f5a9b
commit fc25753f7b
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 22 additions and 0 deletions

View file

@ -5,6 +5,7 @@ in {
./dbus.nix ./dbus.nix
./pipewire.nix ./pipewire.nix
./udev.nix ./udev.nix
./ssh.nix
]; ];
services = { services = {
blueman.enable = true; blueman.enable = true;

View file

@ -0,0 +1,21 @@
_: {
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
};
hostKeys = [
{
path = "/etc/ssh/keys/ssh_host_ed25519_key";
type = "ed25519";
}
{
path = "/etc/ssh/keys/ssh_host_rsa_key";
type = "rsa";
bits = "4096";
}
];
};
}