Small refactor, try and mount the other drive on /boot for wheatley

This commit is contained in:
Lillian Violet 2024-01-14 15:58:21 +01:00
parent bbb88012f4
commit c9ac78a81a
3 changed files with 52 additions and 31 deletions

View file

@ -0,0 +1,35 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
services.pihole = {
enable = true;
hostConfig = {
# define the service user for running the rootless Pi-hole container
user = "pihole";
enableLingeringForUser = true;
# we want to persist change to the Pi-hole configuration & logs across service restarts
# check the option descriptions for more information
persistVolumes = true;
# expose DNS & the web interface on unpriviledged ports on all IP addresses of the host
# check the option descriptions for more information
dnsPort = 5335;
webProt = 8080;
};
piholeConfig.ftl = {
# assuming that the host has this (fixed) IP and should resolve "pi.hole" to this address
# check the option description & the FTLDNS documentation for more information
LOCAL_IPV4 = "192.168.0.2";
};
piholeCOnfig.web = {
virtualHost = "pi.hole";
password = "password";
};
};
}