mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-01-18 21:29:33 +01:00
22 lines
470 B
Nix
22 lines
470 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
|
|
sops.secrets.piholeHostname = {};
|
|
sops.secrets.piholePassword = {};
|
|
|
|
virtualisation.oci-containers = {
|
|
backend = "docker";
|
|
containers = {
|
|
pihole-exporter = {
|
|
image = "ekofr/pihole-exporter:latest";
|
|
ports = [ "9617:9617" ];
|
|
environment = {
|
|
"PIHOLE_HOSTNAME" = config.sops.secrets.piholeHostname;
|
|
"PIHOLE_PASSWORD" = config.sops.secrets.piholePassword;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|