nixos-config/nixos/system/desktop/dnsmasq.nix

15 lines
308 B
Nix
Raw Normal View History

2019-10-24 02:20:38 +02:00
{ config, lib, pkgs, ... }:
with lib;
{
services.dnsmasq = {
2021-06-03 14:27:18 +02:00
enable = mkDefault true;
2019-10-24 02:20:38 +02:00
extraConfig = ''
2019-12-20 05:54:26 +01:00
${concatStringsSep "\n"
(flip mapAttrsToList config.module.cluster.services.tinc."private".hosts
(name: attrs: "address=/.${name}.private/${attrs.tincIp}"))}
2019-10-24 02:20:38 +02:00
'';
};
}