restructure container directory

This commit is contained in:
♥ Minnie ♥ 2023-05-24 22:25:12 +08:00
parent 4527811bea
commit 7b9ac7400c
11 changed files with 28 additions and 23 deletions

View file

@ -0,0 +1,24 @@
{ ... }:
{
# Pi-hole
virtualisation.oci-containers.containers."pihole" = {
autoStart = true;
image = "pihole/pihole:latest";
volumes = [
"/srv/containers/pihole/etc-pihole:/etc/pihole"
"/srv/containers/pihole/etc-dnsmasq.d:/etc/dnsmasq.d"
"/srv/containers/pihole/secrets:/secrets"
];
ports = [
"53:53/tcp"
"53:53/udp"
"8181:80/tcp"
];
environment = {
WEBPASSWORD_FILE = "/secrets/admin-password";
DNSMASQ_LISTENING = "all";
};
};
}