24 lines
421 B
Nix
24 lines
421 B
Nix
{ ... }:
|
|
|
|
{
|
|
# 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";
|
|
};
|
|
};
|
|
}
|
|
|