enable pihole container

This commit is contained in:
Adithya 2024-01-04 21:51:17 +05:30
parent 931e7d1f4b
commit 2e322e6308
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 22 additions and 1 deletions

View file

@ -1,5 +1,5 @@
_: { _: {
imports = [ ]; imports = [ ./pihole.nix ];
virtualisation.oci-containers = { virtualisation.oci-containers = {
backend = "podman"; backend = "podman";

View file

@ -0,0 +1,21 @@
_: {
virtualisation.oci-containers.containers = {
pihole = {
image = "pihole/pihole:latest";
hostname = "heimdall";
environmentFiles = [
"/var/lib/pihole/.env"
];
volumes = [
"/var/lib/pihole/etc/pihole:/etc/pihole/"
"/var/lib/pihole/etc/dnsmasq.d:/etc/dnsmasq.d/"
];
ports = [
"53:53/tcp"
"53:53/udp"
"67:67/udp"
"3000:80/tcp"
];
};
};
}