26 lines
392 B
Nix
26 lines
392 B
Nix
{
|
|
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"
|
|
# "-profile"
|
|
"527db2"
|
|
];
|
|
};
|
|
};
|
|
}
|