nixos/dnsmasq: allow custom package

Allow a custom package to be used for dnsmasq service.
This commit is contained in:
Gary Guo
2023-10-07 11:53:25 +01:00
parent 7fdd142177
commit 7094f1ec0e
@@ -4,7 +4,7 @@ with lib;
let
cfg = config.services.dnsmasq;
dnsmasq = pkgs.dnsmasq;
dnsmasq = cfg.package;
stateDir = "/var/lib/dnsmasq";
# True values are just put as `name` instead of `name=true`, and false values
@@ -53,6 +53,8 @@ in
'';
};
package = mkPackageOptionMD pkgs "dnsmasq" {};
resolveLocalQueries = mkOption {
type = types.bool;
default = true;