24 lines
502 B
Nix
24 lines
502 B
Nix
{ lib, config, ... }:
|
|
|
|
{
|
|
config = lib.mkIf config.myConfig.workstation.enable {
|
|
services.dnsmasq = {
|
|
enable = true;
|
|
resolveLocalQueries = true;
|
|
servers = [
|
|
"127.0.0.1#9053"
|
|
"/lechner.zz/192.168.0.1"
|
|
"/lab.fablab-nea.de/192.168.94.1"
|
|
];
|
|
extraConfig = ''
|
|
no-resolv
|
|
interface=lo
|
|
listen-address=::1
|
|
listen-address=127.0.0.1
|
|
bind-interfaces
|
|
dns-loop-detect
|
|
neg-ttl=5
|
|
'';
|
|
};
|
|
};
|
|
}
|