mirror of
https://github.com/oqyude/nixos.git
synced 2026-10-07 20:47:14 +03:00
24 lines
391 B
Nix
24 lines
391 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
lib.mkIf config.xlib.ssh.enable {
|
|
services.openssh = {
|
|
enable = true;
|
|
allowSFTP = true;
|
|
openFirewall = lib.mkDefault false;
|
|
hostKeys = [
|
|
{
|
|
path = "/etc/ssh/id_ed25519";
|
|
type = "ed25519";
|
|
}
|
|
];
|
|
settings = {
|
|
PasswordAuthentication = false;
|
|
PermitRootLogin = "yes";
|
|
UsePAM = true;
|
|
};
|
|
};
|
|
}
|