mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
nixos/dnsmasq: allow custom package
Allow a custom package to be used for dnsmasq service.
This commit is contained in:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user