fix: dns in podman containers
This commit is contained in:
parent
d823982850
commit
ce43a4f211
@ -35,6 +35,14 @@ in
|
|||||||
defaultNetwork.settings.dns_enabled = true;
|
defaultNetwork.settings.dns_enabled = true;
|
||||||
dockerSocket.enable = !config.virtualisation.docker.enable;
|
dockerSocket.enable = !config.virtualisation.docker.enable;
|
||||||
};
|
};
|
||||||
|
containers.containersConf.settings = {
|
||||||
|
network = {
|
||||||
|
dns_servers = [
|
||||||
|
"10.10.10.1"
|
||||||
|
"host"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
containers.registries.search = [
|
containers.registries.search = [
|
||||||
"docker.io"
|
"docker.io"
|
||||||
"ghcr.io"
|
"ghcr.io"
|
||||||
@ -72,6 +80,9 @@ in
|
|||||||
autoUpdate.enable = false;
|
autoUpdate.enable = false;
|
||||||
networks = {
|
networks = {
|
||||||
br-services.networkConfig = {
|
br-services.networkConfig = {
|
||||||
|
# TODO: enable dns, fix dns resolution
|
||||||
|
# dns = [ "10.10.10.1" ];
|
||||||
|
disableDns = true;
|
||||||
driver = "bridge";
|
driver = "bridge";
|
||||||
ipamDriver = "host-local";
|
ipamDriver = "host-local";
|
||||||
ipv6 = false;
|
ipv6 = false;
|
||||||
@ -83,6 +94,8 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.enableContainers = true;
|
||||||
|
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
[ ]
|
[ ]
|
||||||
++ optionals cfg.docker [ pkgs.docker-compose ]
|
++ optionals cfg.docker [ pkgs.docker-compose ]
|
||||||
@ -91,8 +104,9 @@ in
|
|||||||
|
|
||||||
users.users."qemu-libvirtd" = mkIf cfg.libvirt {
|
users.users."qemu-libvirtd" = mkIf cfg.libvirt {
|
||||||
extraGroups = lib.optionals (!config.virtualisation.libvirtd.qemu.runAsRoot) [
|
extraGroups = lib.optionals (!config.virtualisation.libvirtd.qemu.runAsRoot) [
|
||||||
"kvm"
|
|
||||||
"input"
|
"input"
|
||||||
|
"kvm"
|
||||||
|
"libvitrd"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user