infra/nix/os/profiles/containers/configuration.nix

32 lines
643 B
Nix
Raw Normal View History

{
hostAddress,
pkgs,
lib,
...
}: {
2022-03-20 16:40:47 +01:00
networking.useHostResolvConf = false;
networking.firewall.enable = true;
networking.nftables.enable = true;
networking.nftables.flushRuleset = true;
networking.nameservers = lib.mkForce [hostAddress];
environment.systemPackages = [
pkgs.dnsutils
];
imports = [
{
# keep DNS set up to a minimum: only query the container host
services.resolved.enable = lib.mkForce false;
networking.nameservers = [
hostAddress
];
}
2024-06-01 21:46:09 +02:00
../../snippets/nix-settings.nix
# ../../modules/ddclient-ovh.nix
# ../../modules/ddclient-hetzner.nix
];
2019-02-03 14:31:21 +01:00
}