mirror of
https://github.com/lxstinthesky/matrix.git
synced 2025-11-02 00:42:48 +00:00
17 lines
467 B
Nix
17 lines
467 B
Nix
{ config, pkgs, inputs, ... }:
|
|
|
|
{
|
|
# providing an ssh configuration
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PermitRootLogin = "no"; # Disable root login
|
|
PasswordAuthentication = false; # Force SSH key auth only
|
|
PubkeyAuthentication = true; # Enable SSH keys
|
|
};
|
|
ports = [ 22 ];
|
|
};
|
|
|
|
# other security hardening options can go here
|
|
security.sudo.wheelNeedsPassword = false;
|
|
} |