pihole
This commit is contained in:
@@ -5,16 +5,6 @@
|
||||
default = false;
|
||||
};
|
||||
|
||||
/*imports = [
|
||||
"${inputs.nixpkgs-us}/nixos/modules/services/networking/pihole-ftl.nix"
|
||||
"${inputs.nixpkgs-us}/nixos/modules/services/web-apps/pihole-web.nix"
|
||||
"${inputs.nixpkgs-us}/nixos/modules/virtualisation/nixos-containers.nix"
|
||||
];*/
|
||||
|
||||
/*disabledModules = [
|
||||
"virtualisation/nixos-containers.nix"
|
||||
];*/
|
||||
|
||||
|
||||
config = lib.mkIf config.sysconfig.opts.virtualization.pihole.enable {
|
||||
/* sops.secrets."pihole/pass" = {};
|
||||
@@ -61,16 +51,29 @@
|
||||
package = pkgs-us.pihole-ftl;
|
||||
|
||||
openFirewallDNS = true;
|
||||
openFirewallWebserver = true;
|
||||
|
||||
lists = [
|
||||
{
|
||||
url = "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts";
|
||||
}
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
unbound = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
server = {
|
||||
interface = [ "127.0.0.1" ];
|
||||
port = 5335;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user