bgibson
September 8, 2021, 3:46am
1
Is pi-hole (source ) available in nixpkgs? Doesn’t appear to be, but just want to check.
I tried searching for both “pi-hole” and “pihole” but got no results. “pi” returns ~5000, too many to eyeball.
1 Like
There is a package request which is still open:
opened 07:42AM - 17 May 19 UTC
9.needs: package (new)
https://github.com/pi-hole/pi-hole
Arch package to get ideas how to package it:…
https://aur.archlinux.org/packages/pi-hole-server/
2 Likes
j-k
September 15, 2021, 11:49am
3
AdGuard Home is packaged and has a module if you don’t have a preference but otherwise yeah you’d need to look at packaging it and you’d probably want to write a module too.
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.adguardhome;
args = concatStringsSep " " ([
"--no-check-update"
"--pidfile /run/AdGuardHome/AdGuardHome.pid"
"--work-dir /var/lib/AdGuardHome/"
"--config /var/lib/AdGuardHome/AdGuardHome.yaml"
"--host ${cfg.host}"
"--port ${toString cfg.port}"
] ++ cfg.extraArgs);
in
{
options.services.adguardhome = with types; {
enable = mkEnableOption "AdGuard Home network-wide ad blocker";
This file has been truncated. show original
https://search.nixos.org/options?channel=unstable&show=services.adguardhome.enable&from=0&size=50&sort=relevance&type=packages&query=adguard
2 Likes
Would be an interesting project to start using Nixos on servers.
1 Like