enable pihole container
This commit is contained in:
parent
931e7d1f4b
commit
2e322e6308
2 changed files with 22 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
_: {
|
_: {
|
||||||
imports = [ ];
|
imports = [ ./pihole.nix ];
|
||||||
|
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers = {
|
||||||
backend = "podman";
|
backend = "podman";
|
||||||
|
|
21
hosts/rico0/containers/pihole.nix
Normal file
21
hosts/rico0/containers/pihole.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue