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

29 lines
625 B
Nix
Raw Normal View History

{
hostAddress,
pkgs,
lib,
...
2024-11-15 10:17:56 +01:00
}:
{
2022-03-20 16:40:47 +01:00
networking.useHostResolvConf = false;
networking.firewall.enable = true;
networking.nftables.enable = true;
networking.nftables.flushRuleset = true;
2024-11-15 10:17:56 +01:00
networking.nameservers = lib.mkForce [ hostAddress ];
2024-11-15 10:17:56 +01:00
environment.systemPackages = [ pkgs.dnsutils ];
imports = [
{
# keep DNS set up to a minimum: only query the container host
services.resolved.enable = lib.mkForce false;
2024-11-15 10:17:56 +01:00
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
}