mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 20:59:32 -08:00
got dnsmasq working as lan dns
This commit is contained in:
parent
25fb35f1cb
commit
8954974c75
2 changed files with 23 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
|||
{
|
||||
imports = [
|
||||
(import ./hardware-configuration.nix)
|
||||
(import ./modules/dnsmasq.nix)
|
||||
(import ./modules/forgejo.nix)
|
||||
(import ./modules/nginx.nix)
|
||||
(import ./modules/nextcloud.nix)
|
||||
|
@ -40,7 +41,8 @@
|
|||
};
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [80 443 3001 5432]; # port 3001 opened to allow git traffic on the local netword
|
||||
allowedTCPPorts = [53 80 443 3001 5432]; # port 3001 opened to allow git traffic on the local netword
|
||||
allowedUDPPorts = [53];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
20
hosts/Alaska/modules/dnsmasq.nix
Normal file
20
hosts/Alaska/modules/dnsmasq.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ...}:
|
||||
|
||||
{
|
||||
services.dnsmasq = {
|
||||
enable = true;
|
||||
alwaysKeepRunning = true;
|
||||
resolveLocalQueries = true;
|
||||
settings = {
|
||||
listen-address = "::1,127.0.0.1,10.0.0.183";
|
||||
port = 53;
|
||||
server = [ "1.1.1.1" "8.8.8.8" "8.8.4.4" ];
|
||||
# Manual expection for frustrating windows devices to point at headscale server
|
||||
address = "/headscale.nickiel.net/10.0.0.183";
|
||||
bogus-priv = true;
|
||||
domain-needed = true;
|
||||
no-resolv = true;
|
||||
cache-size = 1000;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue