add nextdns for darwin
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
darwin = {
|
darwin = {
|
||||||
syncthing.enable = true;
|
syncthing.enable = true;
|
||||||
tailscale.enable = true;
|
tailscale.enable = true;
|
||||||
|
nextdns.enable = true;
|
||||||
yubikey.enable = true;
|
yubikey.enable = true;
|
||||||
work.enable = true;
|
work.enable = true;
|
||||||
apps.enable = true;
|
apps.enable = true;
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./tailscale
|
./tailscale
|
||||||
|
./nextdns
|
||||||
./syncthing
|
./syncthing
|
||||||
./yubikey
|
./yubikey
|
||||||
./work
|
./work
|
||||||
@@ -13,5 +14,4 @@
|
|||||||
./cyber
|
./cyber
|
||||||
./gaming
|
./gaming
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user