initial commit. after fucking it up once
This commit is contained in:
commit
b7cea98e99
48 changed files with 3437 additions and 0 deletions
29
services/pihole/pihole.mod.nix
Normal file
29
services/pihole/pihole.mod.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
fructose.modules = [
|
||||
(
|
||||
{ config, ... }:
|
||||
{
|
||||
virtualisation.oci-containers = {
|
||||
containers.pihole = {
|
||||
image = "pihole/pihole:latest";
|
||||
ports = [
|
||||
"53:53/tcp"
|
||||
"53:53/udp"
|
||||
"800:80"
|
||||
];
|
||||
environmentFiles = [
|
||||
"${config.sops.templates."pihole.env.secrets.yaml".path}"
|
||||
];
|
||||
environment = {
|
||||
TZ = "Europe/Bucharest";
|
||||
};
|
||||
volumes = [
|
||||
"/var/services/pihole/etc-pihole/:/etc/pihole/"
|
||||
"/var/services/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue