Enable sshd on desktop

This commit is contained in:
Paul-Henri Froidmont 2025-08-28 23:24:58 +02:00
parent 03b35dea36
commit 374d74b0e0
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE

View file

@ -50,6 +50,21 @@
services.tailscale.enable = true; services.tailscale.enable = true;
services.openssh = {
enable = true;
passwordAuthentication = false;
listenAddresses = [
{
# Tailscale interface
addr = "100.71.79.119";
port = 22;
}
];
};
users.users.root.openssh.authorizedKeys.keyFiles = [
../../ssh_keys/phfroidmont-laptop.pub
];
# Allow to externally control MPD # Allow to externally control MPD
networking.firewall.allowedTCPPorts = [ 6600 ]; networking.firewall.allowedTCPPorts = [ 6600 ];