add pihole container

This commit is contained in:
♥ Minnie ♥ 2023-05-16 15:52:55 +08:00
parent 66404a10ea
commit d2c3cd93a1
2 changed files with 26 additions and 0 deletions

View file

@ -15,6 +15,9 @@
# Containers
./containers/homepage.nix
./containers/pihole.nix
# Media server containers
./containers/jellyfin.nix
./containers/sonarr.nix
./containers/radarr.nix

View file

@ -0,0 +1,23 @@
{ ... }:
{
# 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";
};
};
}