nixos/modules/openssh.nix

17 lines
232 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
2024-02-17 11:56:20 +01:00
{
services.openssh = {
enable = true;
listenAddresses = [
{
2024-02-17 12:00:06 +01:00
addr = "192.168.1.0";
2024-02-17 11:58:39 +01:00
port = 22;
2024-02-17 11:56:20 +01:00
}
];
2024-02-17 11:57:39 +01:00
2024-02-17 11:57:59 +01:00
settings = {
2024-02-17 11:57:39 +01:00
PasswordAuthentication = true;
};
2024-02-17 11:56:20 +01:00
};
}