create ssh host keys
This commit is contained in:
parent
ff467f5a9b
commit
fc25753f7b
2 changed files with 22 additions and 0 deletions
|
@ -5,6 +5,7 @@ in {
|
|||
./dbus.nix
|
||||
./pipewire.nix
|
||||
./udev.nix
|
||||
./ssh.nix
|
||||
];
|
||||
services = {
|
||||
blueman.enable = true;
|
||||
|
|
21
hosts/skipper/services/ssh.nix
Normal file
21
hosts/skipper/services/ssh.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue