mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
omen
: re-enable systemd-resolved
Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
parent
ceb4aeb107
commit
b0db2aaef1
|
@ -17,8 +17,6 @@ in {
|
||||||
|
|
||||||
hostId = "10c7ffc5";
|
hostId = "10c7ffc5";
|
||||||
|
|
||||||
nameservers = [(secret.network.ips.blowhole.ip or "")];
|
|
||||||
|
|
||||||
firewall.enable = false;
|
firewall.enable = false;
|
||||||
|
|
||||||
wireguard.interfaces."wg0" =
|
wireguard.interfaces."wg0" =
|
||||||
|
@ -73,35 +71,34 @@ in {
|
||||||
linkConfig.Name = "eth1";
|
linkConfig.Name = "eth1";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.network.networks."50-eth0" = {
|
systemd.network.networks."50-eth" = {
|
||||||
matchConfig.Name = "eth0";
|
matchConfig.Name = "eth?";
|
||||||
networkConfig.DHCP = "ipv4";
|
networkConfig.DHCP = "ipv4";
|
||||||
linkConfig.RequiredForOnline = "no";
|
linkConfig.RequiredForOnline = "no";
|
||||||
|
extraConfig = ''
|
||||||
|
[DHCP]
|
||||||
|
UseDNS=false
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.network.networks."50-eth1" = {
|
systemd.network.networks."50-wlan" = {
|
||||||
matchConfig.Name = "eth1";
|
matchConfig.Name = "wlan?";
|
||||||
networkConfig.DHCP = "ipv4";
|
networkConfig.DHCP = "ipv4";
|
||||||
linkConfig.RequiredForOnline = "no";
|
extraConfig = ''
|
||||||
|
[DHCP]
|
||||||
|
UseDNS=false
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.network.wait-online.enable = false;
|
systemd.network.wait-online.enable = false;
|
||||||
|
|
||||||
services.resolved.enable = false;
|
services.resolved.enable = true;
|
||||||
environment.etc."resolv.conf".text = ''
|
services.resolved.fallbackDns = lib.mkForce [];
|
||||||
nameserver ${secret.network.ips.blowhole.ip or ""}
|
networking.nameservers = lib.mkForce [
|
||||||
'';
|
(secret.network.ips.blowhole.ip or "")
|
||||||
|
];
|
||||||
services.resolved.extraConfig = ''
|
|
||||||
[Resolve]
|
|
||||||
DNS=${secret.network.ips.blowhole.ip or ""}
|
|
||||||
FallbackDNS=
|
|
||||||
'';
|
|
||||||
|
|
||||||
networking.wireless.iwd.enable = true;
|
networking.wireless.iwd.enable = true;
|
||||||
networking.wireless.iwd.settings = {
|
|
||||||
General.EnableNetworkConfiguration = true;
|
|
||||||
};
|
|
||||||
hardware.bluetooth = {
|
hardware.bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
Loading…
Reference in a new issue