From 9af0abc9f903a746cbb8113c4f2bb9c9041371ca Mon Sep 17 00:00:00 2001 From: rocketcamel Date: Mon, 17 Nov 2025 10:21:49 -0800 Subject: [PATCH] feat: add dns --- nix/hosts/usahara/configuration.nix | 9 ++++++++- nix/modules/commonPackages.nix | 17 +++++++++++++++++ nix/modules/kanata.nix | 1 + 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/nix/hosts/usahara/configuration.nix b/nix/hosts/usahara/configuration.nix index 6cd697c..e53516f 100644 --- a/nix/hosts/usahara/configuration.nix +++ b/nix/hosts/usahara/configuration.nix @@ -26,7 +26,14 @@ }; networking.hostName = meta.hostname; - networking.networkmanager.enable = true; + networking.networkmanager = { + enable = true; + dns = "systemd-resolved"; + }; + # networking.search = [ + # "service.consul" + # "node.consul" + # ]; hardware.bluetooth.enable = true; swapDevices = [ { diff --git a/nix/modules/commonPackages.nix b/nix/modules/commonPackages.nix index daf4222..4a51733 100644 --- a/nix/modules/commonPackages.nix +++ b/nix/modules/commonPackages.nix @@ -86,6 +86,23 @@ services.pcscd.enable = true; services.udev.packages = with pkgs; [ yubikey-personalization ]; + services.resolved = { + enable = true; + fallbackDns = [ + "1.1.1.1" + "1.0.0.1" + ]; + domains = [ + "consul" + "service.consul" + "node.consul" + ]; + extraConfig = '' + [Resolve] + DNS=192.168.20.5:8600 + ''; + }; + programs.neovim = lib.mkDefault { enable = true; defaultEditor = true; diff --git a/nix/modules/kanata.nix b/nix/modules/kanata.nix index dc374c1..bd9e6fd 100644 --- a/nix/modules/kanata.nix +++ b/nix/modules/kanata.nix @@ -54,6 +54,7 @@ @met-mod ) ''; + extraDefCfg = "process-unmapped-keys yes"; }; }; };