add pihole container
This commit is contained in:
parent
66404a10ea
commit
d2c3cd93a1
2 changed files with 26 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue