flake/configs/server.nix

32 lines
687 B
Nix
Raw Normal View History

2024-06-23 22:48:22 +02:00
{config, ...}: {
2024-06-26 19:30:41 +02:00
imports = [./common.nix];
2024-06-23 22:48:22 +02:00
_module.args.nixinate = {
host = config.networking.hostName;
2024-07-25 13:37:51 +02:00
sshUser = "leo";
2024-06-23 22:48:22 +02:00
buildOn = "remote";
substituteOnTarget = true;
2024-03-24 14:02:03 +01:00
hermetic = false; # hermetic fucks up for cross-system deployments
2024-06-23 22:48:22 +02:00
};
2024-06-20 16:49:12 +02:00
services = {
tailscale.extraUpFlags = ["--advertise-exit-node"];
openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
X11Forwarding = false;
};
};
prometheus.exporters.node = {
enable = true;
port = 9091;
enabledCollectors = ["systemd"];
};
2024-06-20 16:49:12 +02:00
};
2024-05-12 13:33:15 +02:00
}