Skip to content
Olivier Poitrey edited this page Jan 26, 2023 · 1 revision

The NextDNS installer will not work due to the declarative nature of the paths. Upgrades are handled by the package manager.

Within /etc/nixos/configuration.nix:

  1. Add nextdns to environment.systemPackages.
  2. Configure the systemd service.
services.nextdns = {
  enable = true;
  arguments = [ "-config" "10.0.3.0/24=abcdef" "-cache-size" "10MB" ];
};
  1. Run nixos-rebuild switch to install the package and enable the service.
Clone this wiki locally