add pihole container
This commit is contained in:
parent
66404a10ea
commit
d2c3cd93a1
|
@ -15,6 +15,9 @@
|
|||
|
||||
# Containers
|
||||
./containers/homepage.nix
|
||||
./containers/pihole.nix
|
||||
|
||||
# Media server containers
|
||||
./containers/jellyfin.nix
|
||||
./containers/sonarr.nix
|
||||
./containers/radarr.nix
|
||||
|
|
23
nixos/lavender/containers/pihole.nix
Normal file
23
nixos/lavender/containers/pihole.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue