From a23e4c69081ed604c4bcfc458f6332656b5d3ee8 Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Thu, 13 Feb 2025 22:16:55 +0000 Subject: [PATCH] Add split sas vpn tunneling Signed-off-by: Nikolaos Karaolidis --- .../common/configs/system/dnsmasq/default.nix | 19 +++++++++++++++++++ hosts/eirene/default.nix | 1 + hosts/elara/default.nix | 1 + 3 files changed, 21 insertions(+) create mode 100644 hosts/common/configs/system/dnsmasq/default.nix diff --git a/hosts/common/configs/system/dnsmasq/default.nix b/hosts/common/configs/system/dnsmasq/default.nix new file mode 100644 index 0000000..ef210c4 --- /dev/null +++ b/hosts/common/configs/system/dnsmasq/default.nix @@ -0,0 +1,19 @@ +{ ... }: +{ + services.dnsmasq = { + enable = true; + + settings = { + server = [ + "1.1.1.1" + "1.0.0.1" + ]; + + conf-dir = "/etc/dnsmasq.d,*.conf"; + }; + }; + + systemd.tmpfiles.rules = [ "d /etc/dnsmasq.d 0755 root resolvconf" ]; + + networking.networkmanager.dns = "dnsmasq"; +} diff --git a/hosts/eirene/default.nix b/hosts/eirene/default.nix index 97ad40f..79717ec 100644 --- a/hosts/eirene/default.nix +++ b/hosts/eirene/default.nix @@ -13,6 +13,7 @@ ../common/configs/system/brightnessctl ../common/configs/system/btrfs ../common/configs/system/cpu + ../common/configs/system/dnsmasq ../common/configs/system/documentation ../common/configs/system/docker ../common/configs/system/getty diff --git a/hosts/elara/default.nix b/hosts/elara/default.nix index 0d8e578..37be8cf 100644 --- a/hosts/elara/default.nix +++ b/hosts/elara/default.nix @@ -16,6 +16,7 @@ ../common/configs/system/btrfs ../common/configs/system/cloudflared ../common/configs/system/cpu + ../common/configs/system/dnsmasq ../common/configs/system/documentation ../common/configs/system/docker ../common/configs/system/getty