ustetind/gitea-runners: fix podman dns
All checks were successful
Eval nix flake / evals (push) Successful in 4m25s
All checks were successful
Eval nix flake / evals (push) Successful in 4m25s
This commit is contained in:
parent
04a838fc62
commit
40dd069a52
@ -16,19 +16,28 @@
|
|||||||
networking.hostName = "ustetind";
|
networking.hostName = "ustetind";
|
||||||
|
|
||||||
networking.useHostResolvConf = lib.mkForce false;
|
networking.useHostResolvConf = lib.mkForce false;
|
||||||
# systemd.network.enable = lib.mkForce false;
|
|
||||||
# networking.useDHCP = lib.mkForce true;
|
|
||||||
# networking.address = with values.hosts.georg; [ (ipv4 + "/25") (ipv6 + "/64") ];
|
|
||||||
|
|
||||||
systemd.network.networks."30-lxc-veth" = values.defaultNetworkConfig // {
|
systemd.network.networks = {
|
||||||
matchConfig = {
|
"30-lxc-eth" = values.defaultNetworkConfig // {
|
||||||
Type = "ether";
|
matchConfig = {
|
||||||
Kind = "veth";
|
Type = "ether";
|
||||||
Name = [
|
Kind = "veth";
|
||||||
"eth*"
|
Name = [
|
||||||
];
|
"eth*"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
address = with values.hosts.ustetind; [ (ipv4 + "/25") (ipv6 + "/64") ];
|
||||||
|
};
|
||||||
|
"40-podman-veth" = values.defaultNetworkConfig // {
|
||||||
|
matchConfig = {
|
||||||
|
Type = "ether";
|
||||||
|
Kind = "veth";
|
||||||
|
Name = [
|
||||||
|
"veth*"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
DHCP = "yes";
|
||||||
};
|
};
|
||||||
address = with values.hosts.ustetind; [ (ipv4 + "/25") (ipv6 + "/64") ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "24.11";
|
||||||
|
@ -27,5 +27,15 @@ lib.mkMerge [
|
|||||||
(mkRunner "alpha")
|
(mkRunner "alpha")
|
||||||
(mkRunner "beta")
|
(mkRunner "beta")
|
||||||
(mkRunner "epsilon")
|
(mkRunner "epsilon")
|
||||||
{ virtualisation.podman.enable = true; }
|
{
|
||||||
|
virtualisation.podman = {
|
||||||
|
enable = true;
|
||||||
|
defaultNetwork.settings.dns_enabled = true;
|
||||||
|
autoPrune.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.dhcpcd.IPv6rs = false;
|
||||||
|
|
||||||
|
networking.firewall.interfaces."podman+".allowedUDPPorts = [53 5353];
|
||||||
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user