flake/configs/server.nix
2024-07-17 14:51:12 +02:00

25 lines
567 B
Nix

{config, ...}: {
imports = [./common.nix];
_module.args.nixinate = {
host = config.networking.hostName;
sshUser = "root";
buildOn = "remote";
substituteOnTarget = true;
hermetic = false; # hermetic fucks up for cross-system deployments
};
services = {
tailscale.extraUpFlags = ["--advertise-exit-node"];
openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
X11Forwarding = false;
};
};
};
}