Files
athenix/sw/headless/services.nix
2025-12-29 17:14:35 -05:00

36 lines
555 B
Nix

{
config,
lib,
pkgs,
...
}:
{
services.openssh = {
enable = true;
settings = {
AllowUsers = null;
PasswordAuthentication = true;
PermitRootLogin = "yes";
};
};
networking = {
dhcpcd.enable = false;
useDHCP = false;
useHostResolvConf = false;
};
systemd.network = {
enable = true;
networks."50-eth0" = {
matchConfig.Name = "eth0";
networkConfig = {
DHCP = "ipv4";
IPv6AcceptRA = true;
};
linkConfig.RequiredForOnline = "routable";
};
};
}