nixos/dnsmasq: allow custom package

Allow a custom package to be used for dnsmasq service.
This commit is contained in:
Gary Guo 2023-10-06 01:46:12 +08:00
parent 7fdd142177
commit 7094f1ec0e

View File

@ -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;