Add dnsmasq to support split dns
This commit is contained in:
parent
0f1b1ebbcf
commit
9ff1ccc4fa
2 changed files with 16 additions and 3 deletions
|
|
@ -14,6 +14,7 @@
|
|||
docker.enable = true;
|
||||
libvirt.enable = true;
|
||||
languagetool.enable = true;
|
||||
work-proxy.enable = true;
|
||||
};
|
||||
media = {
|
||||
mpd.enable = true;
|
||||
|
|
|
|||
|
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue