add custom nameservers
This commit is contained in:
parent
6f7a3ab787
commit
fdd78294f9
2 changed files with 34 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./networking.nix
|
||||||
./overlays.nix
|
./overlays.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
33
modules/nixos/common/networking.nix
Normal file
33
modules/nixos/common/networking.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
{ inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
inputs.servers.nixosModules.pki
|
||||||
|
];
|
||||||
|
|
||||||
|
services.resolved.enable = false;
|
||||||
|
|
||||||
|
networking.nameservers = [
|
||||||
|
"100.64.0.6"
|
||||||
|
"192.168.178.1"
|
||||||
|
"1.1.1.1"
|
||||||
|
"8.8.8.8"
|
||||||
|
];
|
||||||
|
networking.networkmanager.dns = "none";
|
||||||
|
networking.resolvconf.enable = false;
|
||||||
|
networking.search = [
|
||||||
|
"sid.ovh"
|
||||||
|
"fritz.box"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.etc."resolv.conf".text = ''
|
||||||
|
nameserver 100.64.0.6
|
||||||
|
nameserver 192.168.178.1
|
||||||
|
nameserver 1.1.1.1
|
||||||
|
nameserver 8.8.8.8
|
||||||
|
search sid.ovh
|
||||||
|
search fritz.box
|
||||||
|
'';
|
||||||
|
|
||||||
|
services.tailscale.useRoutingFeatures = "client";
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue