feat: Unify lxc and systems config

This commit is contained in:
UGA Innovation Factory
2025-12-10 10:23:28 -05:00
committed by Hunter Halloran
parent 01d1a36650
commit bcacfd2ca1
5 changed files with 112 additions and 0 deletions

35
sw/headless/services.nix Normal file
View File

@@ -0,0 +1,35 @@
{
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";
};
};
}