add nextdns for darwin

This commit is contained in:
2026-08-25 12:42:51 -05:00
parent 08fa7027d8
commit 7d23d676bf
3 changed files with 26 additions and 1 deletions
+1
View File
@@ -15,6 +15,7 @@
darwin = {
syncthing.enable = true;
tailscale.enable = true;
nextdns.enable = true;
yubikey.enable = true;
work.enable = true;
apps.enable = true;
+1 -1
View File
@@ -6,6 +6,7 @@
}: {
imports = [
./tailscale
./nextdns
./syncthing
./yubikey
./work
@@ -13,5 +14,4 @@
./cyber
./gaming
];
}
+24
View File
@@ -0,0 +1,24 @@
{
pkgs,
config,
lib,
inputs,
...
}: let
service = "nextdns";
cfg = config.darwin.${service};
in {
options.darwin.${service} = {
enable = lib.mkEnableOption "enables ${service}";
};
config = lib.mkIf cfg.enable {
services.${service} = {
enable = true;
arguments = [
"-config"
"527db2"
];
};
};
}