configuration.nix/hosts/rico0/containers/pihole.nix

27 lines
598 B
Nix
Raw Normal View History

2024-01-04 21:51:17 +05:30
_: {
2024-01-04 21:51:24 +05:30
services.caddy.virtualHosts."http://pihole.local.adtya.xyz" = {
extraConfig = ''
reverse_proxy 127.0.0.1:3000
'';
};
2024-01-04 21:51:17 +05:30
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"
];
};
};
}