add nextdns for darwin
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
}: {
|
||||
imports = [
|
||||
./tailscale
|
||||
./nextdns
|
||||
./syncthing
|
||||
./yubikey
|
||||
./work
|
||||
@@ -13,5 +14,4 @@
|
||||
./cyber
|
||||
./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