add nextdns for darwin
This commit is contained in:
@@ -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