fix: dev vm setup

This commit is contained in:
Rasyidan Akbar F. 2025-10-22 13:38:59 +07:00
commit b6230a1d29
10 changed files with 218 additions and 31 deletions

17
modules/nixos/ssh.nix Normal file
View file

@ -0,0 +1,17 @@
{ lib, ... }: {
services.openssh = {
enable = lib.mkDefault true;
openFirewall = lib.mkDefault true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
# Run tailscale so the VM can be reached over the mesh network for SSH.
services.tailscale = {
enable = lib.mkDefault true;
useRoutingFeatures = lib.mkDefault "client";
extraUpFlags = lib.mkDefault [ "--ssh" ];
};
}