pihole: init

This commit is contained in:
41666 2024-05-31 00:59:43 -04:00
parent 4b06e01884
commit c565ac16ba
6 changed files with 218 additions and 80 deletions

View file

@ -0,0 +1 @@
10.100.1.43

View file

@ -0,0 +1,36 @@
{ inputs, pkgs, config, lib, ... }: {
imports = [
../../templates/proxmox-lxc.nix
../../server.nix
../../features/dns-cache.nix
inputs.pihole.nixosModules.default
];
networking.hostName = "pihole";
system.stateVersion = "24.11";
nixpkgs.hostPlatform = "x86_64-linux";
services.pihole = {
enable = true;
enableLingeringForUser = true;
persistVolumes = true;
dnsPort = 5353;
webPort = 8080;
web = {
password = "abcd1234"; # todo?
virtualHost = "http://pihole.hoki-porgy.ts.net";
theme = "default-darker";
};
dns = {
upstreamServers = [
"10.0.0.1"
"1.1.1.1"
"1.0.0.1"
];
dnssec = true;
bogusPriv = true;
fqdnRequired = true;
};
};
}