Add forgejo
This commit is contained in:
parent
4f411004e6
commit
6cf61cb4f5
7 changed files with 136 additions and 12 deletions
24
modules/services/pihole.nix
Normal file
24
modules/services/pihole.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
virtualisation.oci-containers.containers.pihole = {
|
||||
image = "pihole/pihole:latest";
|
||||
autoStart = true;
|
||||
|
||||
ports = [
|
||||
"53:53/udp"
|
||||
"53:53/tcp"
|
||||
"80:80/tcp"
|
||||
];
|
||||
|
||||
environment = {
|
||||
TZ = "Europe/Paris";
|
||||
WEBPASSWORD = "changeme"; # Change à ta convenance
|
||||
PIHOLE_DNS_ = "1.1.1.1;1.0.0.1";
|
||||
};
|
||||
|
||||
volumes = [
|
||||
"/srv/pihole/etc-pihole:/etc/pihole"
|
||||
"/srv/pihole/etc-dnsmasq.d:/etc/dnsmasq.d"
|
||||
];
|
||||
extraOptions = [ "--cap-add=NET_ADMIN" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue