mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-09 15:10:19 +02:00
(feat): reformatted code for flakes usage
This commit is contained in:
parent
d29d6f0133
commit
c3956d6fa4
40 changed files with 130 additions and 76 deletions
21
features/server/containers/pihole-exporter.nix
Normal file
21
features/server/containers/pihole-exporter.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue