Add dnsmasq to support split dns

This commit is contained in:
Paul-Henri Froidmont 2025-08-03 04:02:00 +02:00
parent 0f1b1ebbcf
commit 9ff1ccc4fa
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 16 additions and 3 deletions

View file

@ -14,6 +14,7 @@
docker.enable = true;
libvirt.enable = true;
languagetool.enable = true;
work-proxy.enable = true;
};
media = {
mpd.enable = true;

View file

@ -14,6 +14,20 @@ in
};
config = lib.mkIf cfg.enable {
services.dnsmasq = {
enable = true;
settings = {
server = [
"/lefoyer.lu/10.33.0.100"
"/foyer.lu/10.33.0.100"
"/foyer.cloud/10.33.0.100"
"1.1.1.1"
];
no-resolv = true;
interface = "lo";
bind-interfaces = true;
};
};
networking = {
proxy = {
@ -57,8 +71,6 @@ in
'';
};
# users.users.${config.user.name}.extraGroups = [ "work-proxyd" ];
#
# environment.systemPackages = with pkgs; [ virt-manager ];
environment.systemPackages = with pkgs; [ chisel ];
};
}