dotfiles.nix/nixos/lavender/containers/pihole.nix

24 lines
421 B
Nix
Raw Normal View History

2023-05-16 15:52:55 +08:00
{ ... }:
{
# Pi-hole
virtualisation.oci-containers.containers."pihole" = {
autoStart = true;
image = "pihole/pihole:latest";
volumes = [
"/srv/pihole/etc-pihole:/etc/pihole"
"/srv/pihole/etc-dnsmasq.d:/etc/dnsmasq.d"
];
ports = [
"53:53/tcp"
"53:53/udp"
"80:80/tcp"
];
environment = {
WEBPASSWORD = "";
DNSMASQ_LISTENING = "all";
};
};
}