pihole: init
This commit is contained in:
parent
4b06e01884
commit
c565ac16ba
6 changed files with 218 additions and 80 deletions
1
nixos/hosts/pihole/.target
Normal file
1
nixos/hosts/pihole/.target
Normal file
|
@ -0,0 +1 @@
|
|||
10.100.1.43
|
36
nixos/hosts/pihole/default.nix
Normal file
36
nixos/hosts/pihole/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue